I need to calculate the angular velocity of an object with sine behavior. I know that:
Angular velovity = delta angle / delta time
but I cannot figure how to calculate the delta angle
Can someone help?
Develop games in your browser. Powerful, performant & highly capable.
Just keep track of the previous angle in a private variable like 'oldangle'. Then the delta angle would be Sprite.Angle-Sprite('oldangle').
+ System: Always (every tick)
-> Text: Set text to "Angular Velocity: " & (Sprite.Angle-Sprite ('oldangle'))/TimeDelta
-> Sprite: Set 'oldangle' to Sprite.Angle
Thanks a lot!