diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs index 6cdc112..f7dd158 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | |||
@@ -43,7 +43,9 @@ public enum ConstraintType : int | |||
43 | SLIDER_CONSTRAINT_TYPE, | 43 | SLIDER_CONSTRAINT_TYPE, |
44 | CONTACT_CONSTRAINT_TYPE, | 44 | CONTACT_CONSTRAINT_TYPE, |
45 | D6_SPRING_CONSTRAINT_TYPE, | 45 | D6_SPRING_CONSTRAINT_TYPE, |
46 | MAX_CONSTRAINT_TYPE | 46 | MAX_CONSTRAINT_TYPE, // last type defined by Bullet |
47 | // | ||
48 | FIXED_CONSTRAINT_TYPE = 1234 // BulletSim constraint that is fixed and unmoving | ||
47 | } | 49 | } |
48 | 50 | ||
49 | // =============================================================================== | 51 | // =============================================================================== |
@@ -290,7 +292,7 @@ public enum ConstraintParamAxis : int | |||
290 | AXIS_ANGULAR_X, | 292 | AXIS_ANGULAR_X, |
291 | AXIS_ANGULAR_Y, | 293 | AXIS_ANGULAR_Y, |
292 | AXIS_ANGULAR_Z, | 294 | AXIS_ANGULAR_Z, |
293 | AXIS_LINEAR_ALL = 20, // these last three added by BulletSim so we don't have to do zillions of calls | 295 | AXIS_LINEAR_ALL = 20, // added by BulletSim so we don't have to do zillions of calls |
294 | AXIS_ANGULAR_ALL, | 296 | AXIS_ANGULAR_ALL, |
295 | AXIS_ALL | 297 | AXIS_ALL |
296 | }; | 298 | }; |
@@ -441,6 +443,38 @@ public abstract bool TranslationalLimitMotor(BulletConstraint constrain, float e | |||
441 | 443 | ||
442 | public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold); | 444 | public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold); |
443 | 445 | ||
446 | public const int HINGE_NOT_SPECIFIED = -1; | ||
447 | public abstract bool HingeSetLimits(BulletConstraint constrain, float low, float high, float softness, float bias, float relaxation); | ||
448 | |||
449 | public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse); | ||
450 | |||
451 | public const int SPRING_NOT_SPECIFIED = -1; | ||
452 | public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint); | ||
453 | |||
454 | public abstract bool SpringSetStiffness(BulletConstraint constrain, int index, float stiffnesss); | ||
455 | |||
456 | public abstract bool SpringSetDamping(BulletConstraint constrain, int index, float damping); | ||
457 | |||
458 | public const int SLIDER_LOWER_LIMIT = 0; | ||
459 | public const int SLIDER_UPPER_LIMIT = 1; | ||
460 | public const int SLIDER_LINEAR = 2; | ||
461 | public const int SLIDER_ANGULAR = 3; | ||
462 | public abstract bool SliderSetLimits(BulletConstraint constrain, int lowerUpper, int linAng, float val); | ||
463 | |||
464 | public const int SLIDER_SET_SOFTNESS = 4; | ||
465 | public const int SLIDER_SET_RESTITUTION = 5; | ||
466 | public const int SLIDER_SET_DAMPING = 6; | ||
467 | public const int SLIDER_SET_DIRECTION = 7; | ||
468 | public const int SLIDER_SET_LIMIT = 8; | ||
469 | public const int SLIDER_SET_ORTHO = 9; | ||
470 | public abstract bool SliderSet(BulletConstraint constrain, int softRestDamp, int dirLimOrtho, int linAng, float val); | ||
471 | |||
472 | public abstract bool SliderMotorEnable(BulletConstraint constrain, int linAng, float numericTrueFalse); | ||
473 | |||
474 | public const int SLIDER_MOTOR_VELOCITY = 10; | ||
475 | public const int SLIDER_MAX_MOTOR_FORCE = 11; | ||
476 | public abstract bool SliderMotor(BulletConstraint constrain, int forceVel, int linAng, float val); | ||
477 | |||
444 | public abstract bool CalculateTransforms(BulletConstraint constrain); | 478 | public abstract bool CalculateTransforms(BulletConstraint constrain); |
445 | 479 | ||
446 | public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value, ConstraintParamAxis axis); | 480 | public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value, ConstraintParamAxis axis); |
@@ -464,6 +498,8 @@ public abstract bool AddObjectToWorld(BulletWorld world, BulletBody obj); | |||
464 | 498 | ||
465 | public abstract bool RemoveObjectFromWorld(BulletWorld world, BulletBody obj); | 499 | public abstract bool RemoveObjectFromWorld(BulletWorld world, BulletBody obj); |
466 | 500 | ||
501 | public abstract bool ClearCollisionProxyCache(BulletWorld world, BulletBody obj); | ||
502 | |||
467 | public abstract bool AddConstraintToWorld(BulletWorld world, BulletConstraint constrain, bool disableCollisionsBetweenLinkedObjects); | 503 | public abstract bool AddConstraintToWorld(BulletWorld world, BulletConstraint constrain, bool disableCollisionsBetweenLinkedObjects); |
468 | 504 | ||
469 | public abstract bool RemoveConstraintFromWorld(BulletWorld world, BulletConstraint constrain); | 505 | public abstract bool RemoveConstraintFromWorld(BulletWorld world, BulletConstraint constrain); |