How would I check to see if any axis of velocity is more than .005?

Right now I am trying to check to make sure a ball is very close to stopping.

if math.abs(Ball.Velocity.X) < math.abs(.005) and math.abs(Ball.Velocity.Y) < math.abs(.005) and math.abs(Ball.Velocity.Z) < math.abs(.005) then

Is this correct?

1 Like
if Ball.Velocity.magnitude < eps then

Define eps yourself as some small value.

2 Likes