update libomv with vector2 and 3 IsZero()

This commit is contained in:
UbitUmarov
2022-01-09 23:52:42 +00:00
parent 94adb4f86e
commit dd846ffc6c
11 changed files with 14 additions and 17 deletions

View File

@@ -3660,7 +3660,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
(m_PIDTarget.Z - lpos.Z)
);
if (_target_velocity.ApproxEquals(Vector3.Zero, 0.02f))
if (_target_velocity.ApproxZero(0.02f))
{
SafeNativeMethods.BodySetPosition(Body, m_PIDTarget.X, m_PIDTarget.Y, m_PIDTarget.Z);
SafeNativeMethods.BodySetLinearVel(Body, 0, 0, 0);