a few more changes on vectors etc

This commit is contained in:
UbitUmarov
2022-01-10 02:21:17 +00:00
parent 7d78f62d49
commit 9b33ef9c8c
17 changed files with 19 additions and 19 deletions

View File

@@ -398,7 +398,7 @@ namespace OpenSim.Region.Framework.Scenes
}
PhysicsActor pa = sceneObject.RootPart.PhysActor;
if (pa != null && pa.IsPhysical && vel != Vector3.Zero)
if (pa != null && pa.IsPhysical && !vel.IsZero())
{
sceneObject.RootPart.ApplyImpulse((vel * sceneObject.GetMass()), false);
}