aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorRobert Adams2013-08-09 17:01:35 -0700
committerRobert Adams2013-09-11 09:11:54 -0700
commitf6fdfd16f55c3e1bd55775f1f21e0ac9e44ff2ee (patch)
treec17347b58e2e195ac8e7e58b10bbbeac5ff4a306 /OpenSim/Region/Physics
parentBulletSim: add physChangeLinkParams to set individual parameters on link cons... (diff)
downloadopensim-SC_OLD-f6fdfd16f55c3e1bd55775f1f21e0ac9e44ff2ee.zip
opensim-SC_OLD-f6fdfd16f55c3e1bd55775f1f21e0ac9e44ff2ee.tar.gz
opensim-SC_OLD-f6fdfd16f55c3e1bd55775f1f21e0ac9e44ff2ee.tar.bz2
opensim-SC_OLD-f6fdfd16f55c3e1bd55775f1f21e0ac9e44ff2ee.tar.xz
BulletSim: change ExtendedPhysics constants to 'const' so they can be used as case variables in switch statements.
Diffstat (limited to 'OpenSim/Region/Physics')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs
index c09dd42..b72afc0 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs
@@ -530,6 +530,28 @@ public sealed class BSLinksetConstraints : BSLinkset
530 } 530 }
531 break; 531 break;
532 case ExtendedPhysics.PhysFunctChangeLinkParams: 532 case ExtendedPhysics.PhysFunctChangeLinkParams:
533 int setParam = 2;
534 switch (setParam)
535 {
536 case ExtendedPhysics.PHYS_PARAM_FRAMEINA_LOC:
537 case ExtendedPhysics.PHYS_PARAM_FRAMEINA_ROT:
538 case ExtendedPhysics.PHYS_PARAM_FRAMEINB_LOC:
539 case ExtendedPhysics.PHYS_PARAM_FRAMEINB_ROT:
540 case ExtendedPhysics.PHYS_PARAM_LINEAR_LIMIT_LOW:
541 case ExtendedPhysics.PHYS_PARAM_LINEAR_LIMIT_HIGH:
542 case ExtendedPhysics.PHYS_PARAM_ANGULAR_LIMIT_LOW:
543 case ExtendedPhysics.PHYS_PARAM_ANGULAR_LIMIT_HIGH:
544 case ExtendedPhysics.PHYS_PARAM_USE_FRAME_OFFSET:
545 case ExtendedPhysics.PHYS_PARAM_ENABLE_TRANSMOTOR:
546 case ExtendedPhysics.PHYS_PARAM_TRANSMOTOR_MAXVEL:
547 case ExtendedPhysics.PHYS_PARAM_TRANSMOTOR_MAXFORCE:
548 case ExtendedPhysics.PHYS_PARAM_CFM:
549 case ExtendedPhysics.PHYS_PARAM_ERP:
550 case ExtendedPhysics.PHYS_PARAM_SOLVER_ITERATIONS:
551 case ExtendedPhysics.PHYS_PARAM_SPRING_DAMPING:
552 case ExtendedPhysics.PHYS_PARAM_SPRING_STIFFNESS:
553 break;
554 }
533 break; 555 break;
534 default: 556 default:
535 ret = base.Extension(pFunct, pParams); 557 ret = base.Extension(pFunct, pParams);