diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs index 8c36c31..d95f223 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs | |||
@@ -226,14 +226,14 @@ public sealed class BSLinksetConstraints : BSLinkset | |||
226 | constrain.SetAngularLimits(OMV.Vector3.Zero, OMV.Vector3.Zero); | 226 | constrain.SetAngularLimits(OMV.Vector3.Zero, OMV.Vector3.Zero); |
227 | 227 | ||
228 | // tweek the constraint to increase stability | 228 | // tweek the constraint to increase stability |
229 | constrain.UseFrameOffset(PhysicsScene.BoolNumeric(PhysicsScene.Params.linkConstraintUseFrameOffset)); | 229 | constrain.UseFrameOffset(BSParam.BoolNumeric(BSParam.LinkConstraintUseFrameOffset)); |
230 | constrain.TranslationalLimitMotor(PhysicsScene.BoolNumeric(PhysicsScene.Params.linkConstraintEnableTransMotor), | 230 | constrain.TranslationalLimitMotor(BSParam.BoolNumeric(BSParam.LinkConstraintEnableTransMotor), |
231 | PhysicsScene.Params.linkConstraintTransMotorMaxVel, | 231 | BSParam.LinkConstraintTransMotorMaxVel, |
232 | PhysicsScene.Params.linkConstraintTransMotorMaxForce); | 232 | BSParam.LinkConstraintTransMotorMaxForce); |
233 | constrain.SetCFMAndERP(PhysicsScene.Params.linkConstraintCFM, PhysicsScene.Params.linkConstraintERP); | 233 | constrain.SetCFMAndERP(BSParam.LinkConstraintCFM, BSParam.LinkConstraintERP); |
234 | if (PhysicsScene.Params.linkConstraintSolverIterations != 0f) | 234 | if (BSParam.LinkConstraintSolverIterations != 0f) |
235 | { | 235 | { |
236 | constrain.SetSolverIterations(PhysicsScene.Params.linkConstraintSolverIterations); | 236 | constrain.SetSolverIterations(BSParam.LinkConstraintSolverIterations); |
237 | } | 237 | } |
238 | return constrain; | 238 | return constrain; |
239 | } | 239 | } |