diff options
author | Robert Adams | 2013-02-17 20:07:04 -0800 |
---|---|---|
committer | Robert Adams | 2013-02-17 20:13:49 -0800 |
commit | 1d7276235ace0ed6b7701efa36a7fd7f1b552bab (patch) | |
tree | b7880a0e97da37a2852ad4643ea6ae03ae386018 /OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | |
parent | BulletSim: rework parameter setting for different types of values (diff) | |
download | opensim-SC-1d7276235ace0ed6b7701efa36a7fd7f1b552bab.zip opensim-SC-1d7276235ace0ed6b7701efa36a7fd7f1b552bab.tar.gz opensim-SC-1d7276235ace0ed6b7701efa36a7fd7f1b552bab.tar.bz2 opensim-SC-1d7276235ace0ed6b7701efa36a7fd7f1b552bab.tar.xz |
BulletSim: add calls for creating all the different Bullet constraint types.
Updated the DLLs and SOs and code for BulletXNA to create the types.
All the detailed control calls are not all in place yet.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs index 3f83ef0..5765b0d 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | |||
@@ -365,11 +365,38 @@ public abstract BulletConstraint Create6DofConstraintToPoint(BulletWorld world, | |||
365 | Vector3 joinPoint, | 365 | Vector3 joinPoint, |
366 | bool useLinearReferenceFrameA, bool disableCollisionsBetweenLinkedBodies); | 366 | bool useLinearReferenceFrameA, bool disableCollisionsBetweenLinkedBodies); |
367 | 367 | ||
368 | public abstract BulletConstraint Create6DofConstraintFixed(BulletWorld world, BulletBody obj1, | ||
369 | Vector3 frameInBloc, Quaternion frameInBrot, | ||
370 | bool useLinearReferenceFrameB, bool disableCollisionsBetweenLinkedBodies); | ||
371 | |||
372 | public abstract BulletConstraint Create6DofSpringConstraint(BulletWorld world, BulletBody obj1, BulletBody obj2, | ||
373 | Vector3 frame1loc, Quaternion frame1rot, | ||
374 | Vector3 frame2loc, Quaternion frame2rot, | ||
375 | bool useLinearReferenceFrameA, bool disableCollisionsBetweenLinkedBodies); | ||
376 | |||
368 | public abstract BulletConstraint CreateHingeConstraint(BulletWorld world, BulletBody obj1, BulletBody obj2, | 377 | public abstract BulletConstraint CreateHingeConstraint(BulletWorld world, BulletBody obj1, BulletBody obj2, |
369 | Vector3 pivotinA, Vector3 pivotinB, | 378 | Vector3 pivotinA, Vector3 pivotinB, |
370 | Vector3 axisInA, Vector3 axisInB, | 379 | Vector3 axisInA, Vector3 axisInB, |
371 | bool useLinearReferenceFrameA, bool disableCollisionsBetweenLinkedBodies); | 380 | bool useLinearReferenceFrameA, bool disableCollisionsBetweenLinkedBodies); |
372 | 381 | ||
382 | public abstract BulletConstraint CreateSliderConstraint(BulletWorld world, BulletBody obj1, BulletBody obj2, | ||
383 | Vector3 frameInAloc, Quaternion frameInArot, | ||
384 | Vector3 frameInBloc, Quaternion frameInBrot, | ||
385 | bool useLinearReferenceFrameA, bool disableCollisionsBetweenLinkedBodies); | ||
386 | |||
387 | public abstract BulletConstraint CreateConeTwistConstraint(BulletWorld world, BulletBody obj1, BulletBody obj2, | ||
388 | Vector3 frameInAloc, Quaternion frameInArot, | ||
389 | Vector3 frameInBloc, Quaternion frameInBrot, | ||
390 | bool disableCollisionsBetweenLinkedBodies); | ||
391 | |||
392 | public abstract BulletConstraint CreateGearConstraint(BulletWorld world, BulletBody obj1, BulletBody obj2, | ||
393 | Vector3 axisInA, Vector3 axisInB, | ||
394 | float ratio, bool disableCollisionsBetweenLinkedBodies); | ||
395 | |||
396 | public abstract BulletConstraint CreatePoint2PointConstraint(BulletWorld world, BulletBody obj1, BulletBody obj2, | ||
397 | Vector3 pivotInA, Vector3 pivotInB, | ||
398 | bool disableCollisionsBetweenLinkedBodies); | ||
399 | |||
373 | public abstract void SetConstraintEnable(BulletConstraint constrain, float numericTrueFalse); | 400 | public abstract void SetConstraintEnable(BulletConstraint constrain, float numericTrueFalse); |
374 | 401 | ||
375 | public abstract void SetConstraintNumSolverIterations(BulletConstraint constrain, float iterations); | 402 | public abstract void SetConstraintNumSolverIterations(BulletConstraint constrain, float iterations); |