diff options
author | Robert Adams | 2013-08-09 17:01:35 -0700 |
---|---|---|
committer | Robert Adams | 2013-09-11 09:11:54 -0700 |
commit | f6fdfd16f55c3e1bd55775f1f21e0ac9e44ff2ee (patch) | |
tree | c17347b58e2e195ac8e7e58b10bbbeac5ff4a306 /OpenSim/Region/Physics/BulletSPlugin | |
parent | BulletSim: add physChangeLinkParams to set individual parameters on link cons... (diff) | |
download | opensim-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/BulletSPlugin')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs | 22 |
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); |