Skip to content

raylib.Vector3Project

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Vector3Project

Parameters

Parameter Default Value Note
v1 [0, 0, 0]
v2 [0, 1, 0]

Return value

Condition Return Value
(always) list

Notes

Example

v = [3, 4, 0]
onto = [1, 0, 0]  // project onto the X axis
result = raylib.Vector3Project(v, onto)
print result  // [3, 0, 0]

Clone this wiki locally