#how to get rotation from point a to point b?

14 messages · Page 1 of 1 (latest)

hazy pecan
#

Get pos of both

A-B=direction of b to a

modest imp
#

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)

frosty ruin
#

You need Q U A T E R N I O N S L U R P I N G

modest imp
frosty ruin
modest imp
#

Quaternion Create Look((PositionB - PositionA),(0,1,0)) is how you do that

#

you dont need slerp

pearl raven
#

if your using this for set transform, or respawn, remember rotation can be a vector. Im not sure bout set rotation tho. But ye

maiden lava
#

also loves pvp maps that have realistic looting

frosty ruin
maiden lava
#

lerps are cool though

#

also did you see the silly video that fire sent