diff options
author | Robert Adams | 2013-08-07 10:15:28 -0700 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-09-20 21:01:58 +0100 |
commit | 785171109efda38f6ab973bfde51ba378450abaa (patch) | |
tree | e2f335531282db4ba22e538ab23add72f5ed51d8 /OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | |
parent | BulletSim: complete linkage of spring constraint into linkset constraint. (diff) | |
download | opensim-SC_OLD-785171109efda38f6ab973bfde51ba378450abaa.zip opensim-SC_OLD-785171109efda38f6ab973bfde51ba378450abaa.tar.gz opensim-SC_OLD-785171109efda38f6ab973bfde51ba378450abaa.tar.bz2 opensim-SC_OLD-785171109efda38f6ab973bfde51ba378450abaa.tar.xz |
BulletSim: add unmanaged and XNA functions for hinge, slider and spring constraints.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs index 8cca29f..b241059 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | |||
@@ -441,14 +441,38 @@ public abstract bool TranslationalLimitMotor(BulletConstraint constrain, float e | |||
441 | 441 | ||
442 | public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold); | 442 | public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold); |
443 | 443 | ||
444 | public const int HINGE_NOT_SPECIFIED = -1; | ||
445 | public abstract bool HingeSetLimits(BulletConstraint constrain, float low, float high, float softness, float bias, float relaxation); | ||
446 | |||
444 | public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse); | 447 | public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse); |
445 | 448 | ||
449 | public const int SPRING_NOT_SPECIFIED = -1; | ||
446 | public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint); | 450 | public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint); |
447 | 451 | ||
448 | public abstract bool SpringSetStiffness(BulletConstraint constrain, int index, float stiffnesss); | 452 | public abstract bool SpringSetStiffness(BulletConstraint constrain, int index, float stiffnesss); |
449 | 453 | ||
450 | public abstract bool SpringSetDamping(BulletConstraint constrain, int index, float damping); | 454 | public abstract bool SpringSetDamping(BulletConstraint constrain, int index, float damping); |
451 | 455 | ||
456 | public const int SLIDER_LOWER_LIMIT = 0; | ||
457 | public const int SLIDER_UPPER_LIMIT = 1; | ||
458 | public const int SLIDER_LINEAR = 2; | ||
459 | public const int SLIDER_ANGULAR = 3; | ||
460 | public abstract bool SliderSetLimits(BulletConstraint constrain, int lowerUpper, int linAng, float val); | ||
461 | |||
462 | public const int SLIDER_SET_SOFTNESS = 4; | ||
463 | public const int SLIDER_SET_RESTITUTION = 5; | ||
464 | public const int SLIDER_SET_DAMPING = 6; | ||
465 | public const int SLIDER_SET_DIRECTION = 7; | ||
466 | public const int SLIDER_SET_LIMIT = 8; | ||
467 | public const int SLIDER_SET_ORTHO = 9; | ||
468 | public abstract bool SliderSet(BulletConstraint constrain, int softRestDamp, int dirLimOrtho, int linAng, float val); | ||
469 | |||
470 | public abstract bool SliderMotorEnable(BulletConstraint constrain, int linAng, float numericTrueFalse); | ||
471 | |||
472 | public const int SLIDER_MOTOR_VELOCITY = 10; | ||
473 | public const int SLIDER_MAX_MOTOR_FORCE = 11; | ||
474 | public abstract bool SliderMotor(BulletConstraint constrain, int forceVel, int linAng, float val); | ||
475 | |||
452 | public abstract bool CalculateTransforms(BulletConstraint constrain); | 476 | public abstract bool CalculateTransforms(BulletConstraint constrain); |
453 | 477 | ||
454 | public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value, ConstraintParamAxis axis); | 478 | public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value, ConstraintParamAxis axis); |