How to get Angular speed from a sprite rotating thanks to the mouse?

Hello,

Happy new year to whomever is reading !! :slight_smile:

I am new to GD, I was not able to find the answer to my question
Does anyone know how to get the angular speed of the sprite once it is rotating thanks to the mouse ?

I have tried to use Physics and angular velocity but it is not working, please find my event below

Thanks a lot in advance

Hi!
You are not rotating the object with Physics, so you can’t get the Physics angular velocity.
Either keep your rotating action and calculate the angular speed yourself by comparing the object current angle with the previous one, either convert your rotate action to Physics mechanics.

Hi Gruk,

thanks for your answer, I don’t know how to use Physics with the mouse yet so I’ll do the calcultation manually.
Have a good day :slight_smile:

2 Likes