From b0cb0ec02f5f567539b340727727bee1a43836e6 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sun, 23 Mar 2014 13:08:31 -0700 Subject: [PATCH] BulletSim: fix problem where axis constraints were also constraining linear motion. The code was limiting linear motion to be only in the positive direction for any axis that was constrained. --- OpenSim/Region/Physics/BulletSPlugin/BSActorLockAxis.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSActorLockAxis.cs b/OpenSim/Region/Physics/BulletSPlugin/BSActorLockAxis.cs index 8b0fdeb7f2..7e610075ee 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSActorLockAxis.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSActorLockAxis.cs @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * @@ -121,8 +121,10 @@ public class BSActorLockAxis : BSActor // The constraint is tied to the world and oriented to the prim. // Free to move linearly in the region - OMV.Vector3 linearLow = OMV.Vector3.Zero; - OMV.Vector3 linearHigh = m_physicsScene.TerrainManager.DefaultRegionSize; + // OMV.Vector3 linearLow = OMV.Vector3.Zero; + // OMV.Vector3 linearHigh = m_physicsScene.TerrainManager.DefaultRegionSize; + OMV.Vector3 linearLow = new OMV.Vector3(-10000f, -10000f, -10000f); + OMV.Vector3 linearHigh = new OMV.Vector3(10000f, 10000f, 10000f); if (m_controllingPrim.LockedLinearAxis.X != BSPhysObject.FreeAxis) { linearLow.X = m_controllingPrim.RawPosition.X;