Hello,
I want to retrieve the angle of motion's value from a PhysicObject. This expression is not available in the Physics Behavior expression list, but maybe I can found it with some math ?
Develop games in your browser. Powerful, performant & highly capable.
Here is the expression for the angle of motion:
angle(0, 0, Obj.Physics.VelocityX, Obj.Physics.VelocityY)
And the overall velocity:
distance(0, 0, Obj.Physics.VelocityX, Obj.Physics.VelocityY)
Thank you,this is exactly what I needed !