diff options
author | Robert Adams | 2012-12-31 16:22:45 -0800 |
---|---|---|
committer | Robert Adams | 2012-12-31 19:57:24 -0800 |
commit | 3d0fc708647ceb734385f90e2f22be9774e2171e (patch) | |
tree | 07fa083aa3507a16c4e094beb164f9b8312fe0a4 /OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | |
parent | BulletSim: nearly complete in conversion from BulletSimAPI to BSAPITemplate. ... (diff) | |
download | opensim-SC-3d0fc708647ceb734385f90e2f22be9774e2171e.zip opensim-SC-3d0fc708647ceb734385f90e2f22be9774e2171e.tar.gz opensim-SC-3d0fc708647ceb734385f90e2f22be9774e2171e.tar.bz2 opensim-SC-3d0fc708647ceb734385f90e2f22be9774e2171e.tar.xz |
BulletSim: complete movement of BulletSimAPI functions to BSAPITemplate.
Update BulletSim DLLs and SOs with simplier step function interface.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs index fbf362d..64a886b 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs | |||
@@ -292,26 +292,27 @@ public enum ConstraintParamAxis : int | |||
292 | 292 | ||
293 | public abstract class BSAPITemplate | 293 | public abstract class BSAPITemplate |
294 | { | 294 | { |
295 | /* | 295 | // Returns the name of the underlying Bullet engine |
296 | public abstract string BulletEngineName { get; } | ||
297 | public abstract string BulletEngineVersion { get; protected set;} | ||
298 | |||
296 | // Initialization and simulation | 299 | // Initialization and simulation |
297 | public abstract BulletWorld Initialize(Vector3 maxPosition, IntPtr parms, | 300 | public abstract BulletWorld Initialize(Vector3 maxPosition, ConfigurationParameters parms, |
298 | int maxCollisions, IntPtr collisionArray, | 301 | int maxCollisions, ref CollisionDesc[] collisionArray, |
299 | int maxUpdates, IntPtr updateArray | 302 | int maxUpdates, ref EntityProperties[] updateArray |
300 | ); | 303 | ); |
301 | 304 | ||
302 | public abstract bool UpdateParameter(BulletWorld world, uint localID, String parm, float value); | 305 | /* |
303 | |||
304 | public abstract void SetHeightMap(BulletWorld world, float[] heightmap); | 306 | public abstract void SetHeightMap(BulletWorld world, float[] heightmap); |
305 | 307 | ||
306 | public abstract void Shutdown(BulletWorld sim); | 308 | */ |
307 | |||
308 | public abstract int PhysicsStep(BulletWorld world, float timeStep, int maxSubSteps, float fixedTimeStep, | 309 | public abstract int PhysicsStep(BulletWorld world, float timeStep, int maxSubSteps, float fixedTimeStep, |
309 | out int updatedEntityCount, | 310 | out int updatedEntityCount, out int collidersCount); |
310 | out IntPtr updatedEntitiesPtr, | 311 | |
311 | out int collidersCount, | 312 | public abstract bool UpdateParameter(BulletWorld world, uint localID, String parm, float value); |
312 | out IntPtr collidersPtr); | 313 | |
314 | public abstract void Shutdown(BulletWorld sim); | ||
313 | 315 | ||
314 | */ | ||
315 | public abstract bool PushUpdate(BulletBody obj); | 316 | public abstract bool PushUpdate(BulletBody obj); |
316 | 317 | ||
317 | // ===================================================================================== | 318 | // ===================================================================================== |
@@ -660,5 +661,21 @@ public abstract void SetMargin(BulletShape shape, float val); | |||
660 | 661 | ||
661 | public abstract float GetMargin(BulletShape shape); | 662 | public abstract float GetMargin(BulletShape shape); |
662 | 663 | ||
664 | // ===================================================================================== | ||
665 | // Debugging | ||
666 | public abstract void DumpRigidBody(BulletWorld sim, BulletBody collisionObject); | ||
667 | |||
668 | public abstract void DumpCollisionShape(BulletWorld sim, BulletShape collisionShape); | ||
669 | |||
670 | public abstract void DumpMapInfo(BulletWorld sim, BulletHMapInfo mapInfo); | ||
671 | |||
672 | public abstract void DumpConstraint(BulletWorld sim, BulletConstraint constrain); | ||
673 | |||
674 | public abstract void DumpActivationInfo(BulletWorld sim); | ||
675 | |||
676 | public abstract void DumpAllInfo(BulletWorld sim); | ||
677 | |||
678 | public abstract void DumpPhysicsStatistics(BulletWorld sim); | ||
679 | |||
663 | }; | 680 | }; |
664 | } | 681 | } |