Hi guys. What I'm trying to do is basically calculate damage with velocity and mass (IE, throwing a ball at someone does damage based on speed and weight)
However, I quickly realized that the physics X and Y velocities can be either positive or negative while moving at fast speeds depending on direction.
Here's what I'm using:
Enemies.Health - ((MovableObjects.Physics.Mass * MovableObjects.Physics.VelocityX +MovableObjects.Physics.VelocityY) * 0.05)
Basically, I just want a way to have one "speed" variable that isn't dependent on X and Y.