#how to get rotation from point a to point b?
14 messages · Page 1 of 1 (latest)
Direction? A - B = Direction from Position B to Position A with magnitude of distance
Rotation is more complicated
use a Quaternion Create Look with Forward being the direction from A to B (equation above), and Upward being (0,1,0)
You need Q U A T E R N I O N S L U R P I N G
you dont, at all
Yeah if you want it to be smooth
King zac wants to get a quaternion that points at B from A
Quaternion Create Look((PositionB - PositionA),(0,1,0)) is how you do that
you dont need slerp
if your using this for set transform, or respawn, remember rotation can be a vector. Im not sure bout set rotation tho. But ye
kdog loves his quaternion slerping
also loves pvp maps that have realistic looting
And lerping now that I know what that is