Rotating Actor towards movement direction
Hi guys,
I have an actor that flies through the air using velocity and gravity brings it back down.
What I want to do is rotate the actor so that it faces the direction it is moving in.
Any ideas?
I have an actor that flies through the air using velocity and gravity brings it back down.
What I want to do is rotate the actor so that it faces the direction it is moving in.
Any ideas?
Comments
Constrain self.rotation to vectorToAngle(self.Motion.LinearVelocity.X,self.Motion.LinearVelocity.Y)
Have the image face to the right if its an arrow for eg and you will be fine...see video at approx 2:20
Darren.