Make an object face the way its moving?
GameDev
Member Posts: 14
Hey Again,
im working on a project, where meteors fling to towards the earth and you gotta block them, etc.
http://farm5.static.flickr.com/4054/4707701927_fda1ec1242_b.jpg
How do i get the meteor to face the earth when its flying, and then face the away when its flying away from the earth?
im working on a project, where meteors fling to towards the earth and you gotta block them, etc.
http://farm5.static.flickr.com/4054/4707701927_fda1ec1242_b.jpg
How do i get the meteor to face the earth when its flying, and then face the away when its flying away from the earth?
Comments
self.rotation
to:
vectorToAngle( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )
A good behavior for having any actor rotate smoothly towards its direction of movement.
Bug?