Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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!