You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 spacesource= [400, 300, 0] // screen position + depthprojection=raylib.MatrixIdentityview=raylib.MatrixIdentityresult=raylib.Vector3Unproject(source, projection, view)
printresult