Reputation: 172
I am trying to rotate an object to face the direction it is moving in. We want it to face the normalized velocity vector.. help... pls...
Upvotes: 0
Views: 3089
Reputation: 54782
Have you tried Matrix.CreateLookAt
(MSDN)?
// Matrix.CreateLookAt(eyeLocation, lookAt, upVector);
Matrix.CreateLookAt(currentPosition, currentPosition + velocity, Vector.Up);
Upvotes: 2