rocket falling with Gravity

thierrysthierrys Member Posts: 5
edited November -1 in Working with GS (Mac)
Hi,
When a rocket is fired and falls back to the ground with gravity, how can I make the rotation happening along the falling curve and over time so that the body of the rocket stays always aligned with the curve?
Thanks for any help :)

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Constrain self.Rotation to vectorToAngle(self.Motion.Linear Velocity.X,self.Motion.Linear Velocity.Y)

    I make sure any sprite that rotates faces right so you might have to rotate your sprite to get the correct look.

    Darren.
  • thierrysthierrys Member Posts: 5
    thanks a lot, I will try this out. Cheers!
Sign In or Register to comment.