diff options
author | Robert Adams | 2013-01-28 17:08:34 -0800 |
---|---|---|
committer | Robert Adams | 2013-01-28 17:08:34 -0800 |
commit | 531d0429d1cc49a1959f6f7a0028ed3111dd6bd4 (patch) | |
tree | b9942c3d26fd293c7b74e57c74357512efc60a79 /OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs | |
parent | BulletSim: do not zero an avatar's standing velocity if it is standing (diff) | |
download | opensim-SC_OLD-531d0429d1cc49a1959f6f7a0028ed3111dd6bd4.zip opensim-SC_OLD-531d0429d1cc49a1959f6f7a0028ed3111dd6bd4.tar.gz opensim-SC_OLD-531d0429d1cc49a1959f6f7a0028ed3111dd6bd4.tar.bz2 opensim-SC_OLD-531d0429d1cc49a1959f6f7a0028ed3111dd6bd4.tar.xz |
BulletSim: first unit test: vehicle angular attraction
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs b/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs index 94194b0..05a0dcc 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs | |||
@@ -125,9 +125,9 @@ namespace OpenSim.Region.Physics.BulletSPlugin | |||
125 | static readonly float PIOverTwo = ((float)Math.PI) / 2f; | 125 | static readonly float PIOverTwo = ((float)Math.PI) / 2f; |
126 | 126 | ||
127 | // For debugging, flags to turn on and off individual corrections. | 127 | // For debugging, flags to turn on and off individual corrections. |
128 | private bool enableAngularVerticalAttraction; | 128 | public bool enableAngularVerticalAttraction; |
129 | private bool enableAngularDeflection; | 129 | public bool enableAngularDeflection; |
130 | private bool enableAngularBanking; | 130 | public bool enableAngularBanking; |
131 | 131 | ||
132 | public BSDynamics(BSScene myScene, BSPrim myPrim) | 132 | public BSDynamics(BSScene myScene, BSPrim myPrim) |
133 | { | 133 | { |
@@ -165,7 +165,7 @@ namespace OpenSim.Region.Physics.BulletSPlugin | |||
165 | } | 165 | } |
166 | 166 | ||
167 | #region Vehicle parameter setting | 167 | #region Vehicle parameter setting |
168 | internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue) | 168 | public void ProcessFloatVehicleParam(Vehicle pParam, float pValue) |
169 | { | 169 | { |
170 | VDetailLog("{0},ProcessFloatVehicleParam,param={1},val={2}", Prim.LocalID, pParam, pValue); | 170 | VDetailLog("{0},ProcessFloatVehicleParam,param={1},val={2}", Prim.LocalID, pParam, pValue); |
171 | switch (pParam) | 171 | switch (pParam) |
@@ -677,13 +677,13 @@ namespace OpenSim.Region.Physics.BulletSPlugin | |||
677 | private const int m_knownChangedWaterLevel = 1 << 9; | 677 | private const int m_knownChangedWaterLevel = 1 << 9; |
678 | private const int m_knownChangedForwardVelocity = 1 <<10; | 678 | private const int m_knownChangedForwardVelocity = 1 <<10; |
679 | 679 | ||
680 | private void ForgetKnownVehicleProperties() | 680 | public void ForgetKnownVehicleProperties() |
681 | { | 681 | { |
682 | m_knownHas = 0; | 682 | m_knownHas = 0; |
683 | m_knownChanged = 0; | 683 | m_knownChanged = 0; |
684 | } | 684 | } |
685 | // Push all the changed values back into the physics engine | 685 | // Push all the changed values back into the physics engine |
686 | private void PushKnownChanged() | 686 | public void PushKnownChanged() |
687 | { | 687 | { |
688 | if (m_knownChanged != 0) | 688 | if (m_knownChanged != 0) |
689 | { | 689 | { |