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?
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?
if Ball.Velocity.magnitude < eps then
Define eps yourself as some small value.