From 12119a9d7dd16126c80284892412dc5253420fa4 Mon Sep 17 00:00:00 2001 From: dahlia Date: Sat, 7 Feb 2015 17:39:46 -0800 Subject: llLookAt() strength parameter should slow rotation as it is increased. Thanks Vegaslan for pointing this out. --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 8d28915..af7121d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -4882,7 +4882,7 @@ namespace OpenSim.Region.Framework.Scenes if (APIDTarget != Quaternion.Identity) { PhysicsActor pa = ParentGroup.RootPart.PhysActor; - if (pa == null || !pa.IsPhysical) + if (pa == null || !pa.IsPhysical || APIDStrength < 0.04) { StopLookAt(); return; @@ -4911,7 +4911,7 @@ namespace OpenSim.Region.Framework.Scenes angle = 2.0f * (float)Math.PI - angle; // clamp strength to avoid overshoot - float strength = APIDStrength; + float strength = 1.0f / APIDStrength; if (strength > 1.0) strength = 1.0f; // set angular velocity to rotate to desired orientation -- cgit v1.1