Skip to content

raylib.Vector3Unproject

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Projects a Vector3 from screen space into object space NOTE: Self-contained function, no other raymath functions are called

Parameters

Parameter Default Value Note
source [0, 0, 0]
projection MatrixIdentity
view MatrixIdentity

Return value

Condition Return Value
(always) list

Notes

Example

// Unproject a screen-space point into world space
source = [400, 300, 0]       // screen position + depth
projection = raylib.MatrixIdentity
view = raylib.MatrixIdentity
result = raylib.Vector3Unproject(source, projection, view)
print result

Clone this wiki locally