-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.QuaternionFromVector3ToVector3
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Calculate quaternion based on the rotation from one vector to another
| Parameter | Default Value | Note |
|---|---|---|
| from | [1, 0, 0] | |
| to | [0, 1, 0] |
| Condition | Return Value |
|---|---|
| (always) | map |
// Quaternion that rotates from +X to +Y
q = raylib.QuaternionFromVector3ToVector3([1,0,0], [0,1,0])