Hello everyone and thank you in advance to all the helpers.
My main problem is that I need to get the angle of movment and I thought about doing that through the getVelocity function.
(The body moves to one direction while facing elsewhere)
I’ve found a way but i need to be able to take a number and Un -sin it for the equation but I can’t find the syntax to do it.
P.S
If anyone have a better way to calculate the movment direction it will be good also.