Skip to content

raylib.QuaternionFromVector3ToVector3

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Calculate quaternion based on the rotation from one vector to another

Parameters

Parameter Default Value Note
from [1, 0, 0]
to [0, 1, 0]

Return value

Condition Return Value
(always) map

Notes

Example

// Quaternion that rotates from +X to +Y
q = raylib.QuaternionFromVector3ToVector3([1,0,0], [0,1,0])

Clone this wiki locally