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.0.8.0.3
parent
81c9952e99
commit
b0cb0ec02f
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) Contributors, http://opensimulator.org/
|
* Copyright (c) Contributors, http://opensimulator.org/
|
||||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
* 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.
|
// The constraint is tied to the world and oriented to the prim.
|
||||||
|
|
||||||
// Free to move linearly in the region
|
// Free to move linearly in the region
|
||||||
OMV.Vector3 linearLow = OMV.Vector3.Zero;
|
// OMV.Vector3 linearLow = OMV.Vector3.Zero;
|
||||||
OMV.Vector3 linearHigh = m_physicsScene.TerrainManager.DefaultRegionSize;
|
// 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)
|
if (m_controllingPrim.LockedLinearAxis.X != BSPhysObject.FreeAxis)
|
||||||
{
|
{
|
||||||
linearLow.X = m_controllingPrim.RawPosition.X;
|
linearLow.X = m_controllingPrim.RawPosition.X;
|
||||||
|
|
Loading…
Reference in New Issue