aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
diff options
context:
space:
mode:
authorRobert Adams2012-12-31 16:22:45 -0800
committerRobert Adams2012-12-31 19:57:24 -0800
commit3d0fc708647ceb734385f90e2f22be9774e2171e (patch)
tree07fa083aa3507a16c4e094beb164f9b8312fe0a4 /OpenSim/Region/Physics/BulletSPlugin/BSApiTemplate.cs
parentBulletSim: nearly complete in conversion from BulletSimAPI to BSAPITemplate. ... (diff)
downloadopensim-SC_OLD-3d0fc708647ceb734385f90e2f22be9774e2171e.zip
opensim-SC_OLD-3d0fc708647ceb734385f90e2f22be9774e2171e.tar.gz
opensim-SC_OLD-3d0fc708647ceb734385f90e2f22be9774e2171e.tar.bz2
opensim-SC_OLD-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.cs43
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
293public abstract class BSAPITemplate 293public abstract class BSAPITemplate
294{ 294{
295 /* 295// Returns the name of the underlying Bullet engine
296public abstract string BulletEngineName { get; }
297public abstract string BulletEngineVersion { get; protected set;}
298
296// Initialization and simulation 299// Initialization and simulation
297public abstract BulletWorld Initialize(Vector3 maxPosition, IntPtr parms, 300public 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
302public abstract bool UpdateParameter(BulletWorld world, uint localID, String parm, float value); 305 /*
303
304public abstract void SetHeightMap(BulletWorld world, float[] heightmap); 306public abstract void SetHeightMap(BulletWorld world, float[] heightmap);
305 307
306public abstract void Shutdown(BulletWorld sim); 308 */
307
308public abstract int PhysicsStep(BulletWorld world, float timeStep, int maxSubSteps, float fixedTimeStep, 309public 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, 312public abstract bool UpdateParameter(BulletWorld world, uint localID, String parm, float value);
312 out IntPtr collidersPtr); 313
314public abstract void Shutdown(BulletWorld sim);
313 315
314 */
315public abstract bool PushUpdate(BulletBody obj); 316public abstract bool PushUpdate(BulletBody obj);
316 317
317// ===================================================================================== 318// =====================================================================================
@@ -660,5 +661,21 @@ public abstract void SetMargin(BulletShape shape, float val);
660 661
661public abstract float GetMargin(BulletShape shape); 662public abstract float GetMargin(BulletShape shape);
662 663
664// =====================================================================================
665// Debugging
666public abstract void DumpRigidBody(BulletWorld sim, BulletBody collisionObject);
667
668public abstract void DumpCollisionShape(BulletWorld sim, BulletShape collisionShape);
669
670public abstract void DumpMapInfo(BulletWorld sim, BulletHMapInfo mapInfo);
671
672public abstract void DumpConstraint(BulletWorld sim, BulletConstraint constrain);
673
674public abstract void DumpActivationInfo(BulletWorld sim);
675
676public abstract void DumpAllInfo(BulletWorld sim);
677
678public abstract void DumpPhysicsStatistics(BulletWorld sim);
679
663}; 680};
664} 681}