Search found 5 matches

Re: Quaternion from two points

You can use the Quat::CreateRotationVDir() function. Here is an example: Vec3 direction = (destination - origin).GetNormalized(); Quat finalRotation = Quat::CreateRotationVDir(direction); //Depends on what you need but you could also use Quat::CreateNlerp() or similar to lerp the rotation finalRota...

Go to advanced search