aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
diff options
context:
space:
mode:
authorRobert Adams2013-08-07 10:15:28 -0700
committerJustin Clark-Casey (justincc)2013-09-20 21:01:58 +0100
commit785171109efda38f6ab973bfde51ba378450abaa (patch)
treee2f335531282db4ba22e538ab23add72f5ed51d8 /OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
parentBulletSim: complete linkage of spring constraint into linkset constraint. (diff)
downloadopensim-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.cs24
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
442public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold); 442public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold);
443 443
444public const int HINGE_NOT_SPECIFIED = -1;
445public abstract bool HingeSetLimits(BulletConstraint constrain, float low, float high, float softness, float bias, float relaxation);
446
444public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse); 447public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse);
445 448
449public const int SPRING_NOT_SPECIFIED = -1;
446public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint); 450public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint);
447 451
448public abstract bool SpringSetStiffness(BulletConstraint constrain, int index, float stiffnesss); 452public abstract bool SpringSetStiffness(BulletConstraint constrain, int index, float stiffnesss);
449 453
450public abstract bool SpringSetDamping(BulletConstraint constrain, int index, float damping); 454public abstract bool SpringSetDamping(BulletConstraint constrain, int index, float damping);
451 455
456public const int SLIDER_LOWER_LIMIT = 0;
457public const int SLIDER_UPPER_LIMIT = 1;
458public const int SLIDER_LINEAR = 2;
459public const int SLIDER_ANGULAR = 3;
460public abstract bool SliderSetLimits(BulletConstraint constrain, int lowerUpper, int linAng, float val);
461
462public const int SLIDER_SET_SOFTNESS = 4;
463public const int SLIDER_SET_RESTITUTION = 5;
464public const int SLIDER_SET_DAMPING = 6;
465public const int SLIDER_SET_DIRECTION = 7;
466public const int SLIDER_SET_LIMIT = 8;
467public const int SLIDER_SET_ORTHO = 9;
468public abstract bool SliderSet(BulletConstraint constrain, int softRestDamp, int dirLimOrtho, int linAng, float val);
469
470public abstract bool SliderMotorEnable(BulletConstraint constrain, int linAng, float numericTrueFalse);
471
472public const int SLIDER_MOTOR_VELOCITY = 10;
473public const int SLIDER_MAX_MOTOR_FORCE = 11;
474public abstract bool SliderMotor(BulletConstraint constrain, int forceVel, int linAng, float val);
475
452public abstract bool CalculateTransforms(BulletConstraint constrain); 476public abstract bool CalculateTransforms(BulletConstraint constrain);
453 477
454public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value, ConstraintParamAxis axis); 478public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value, ConstraintParamAxis axis);