Hello,
I want to get the overall speed of a Physic Object in order to apply a damage value based on the collision strenght between 2 Physic Objects. The only available expressions are Velocity.X and Velocity.Y.
I first try to use something like (abs(Object.Velocity.X)+abs(Object.Velocity.Y))/2. I thought that if a perfect horizontal movement with velocityX = 100 and velocityY = 0 would leed to VelX = 50 and VelY = 50 for a perfect diagonal move at 330°.
Instead, the values are more like VelX=70 and VelY=70.
I wonder what how to retrieve the real overall speed value in any direction ?