Browse Source

Some fixes for ppremake+bullet

rdb 13 years ago
parent
commit
21c922c7cd

+ 1 - 1
dtool/Config.pp

@@ -1127,7 +1127,7 @@
 #defer HAVE_ROCKET_PYTHON $[and $[HAVE_ROCKET],$[HAVE_PYTHON]]
 #defer HAVE_ROCKET_PYTHON $[and $[HAVE_ROCKET],$[HAVE_PYTHON]]
 
 
 // Bullet is a physics engine
 // Bullet is a physics engine
-#define BULLET_IPATH /usr/local/include
+#define BULLET_IPATH /usr/local/include/bullet
 #define BULLET_LPATH /usr/local/lib
 #define BULLET_LPATH /usr/local/lib
 #if $[WINDOWS_PLATFORM]
 #if $[WINDOWS_PLATFORM]
 #define BULLET_LIBS BulletSoftBody.lib BulletDynamics.lib BulletCollision.lib LinearMath.lib
 #define BULLET_LIBS BulletSoftBody.lib BulletDynamics.lib BulletCollision.lib LinearMath.lib

+ 1 - 1
dtool/src/parser-inc/Sources.pp

@@ -27,4 +27,4 @@
     Core/Core.h Forest/Forest.h Renderers/OpenGL/OpenGLRenderer.h \
     Core/Core.h Forest/Forest.h Renderers/OpenGL/OpenGLRenderer.h \
     Renderers/DirectX9/DirectX9Renderer.h \
     Renderers/DirectX9/DirectX9Renderer.h \
     glew/glew.h Eigen/Dense Eigen/StdVector \
     glew/glew.h Eigen/Dense Eigen/StdVector \
-    Rocket/Core/RenderInterface.h
+    Rocket/Core/RenderInterface.h btBulletDynamicsCommon.h

+ 87 - 159
panda/src/bullet/Sources.pp

@@ -10,90 +10,54 @@
   #define COMBINED_SOURCES $[TARGET]_composite.cxx
   #define COMBINED_SOURCES $[TARGET]_composite.cxx
 
 
   #define SOURCES \
   #define SOURCES \
-    bulletAllHitsRayResult.I \
-    bulletAllHitsRayResult.h \
-    bulletBodyNode.I \
-    bulletBodyNode.h \
-    bulletBoxShape.I \
-    bulletBoxShape.h \
-    bulletCapsuleShape.I \
-    bulletCapsuleShape.h \
-    bulletCharacterControllerNode.I \
-    bulletCharacterControllerNode.h \
-    bulletClosestHitRayResult.I \
-    bulletClosestHitRayResult.h \
-    bulletClosestHitSweepResult.I \
-    bulletClosestHitSweepResult.h \
-    bulletConeShape.I \
-    bulletConeShape.h \
-    bulletConeTwistConstraint.I \
-    bulletConeTwistConstraint.h \
-    bulletConstraint.I \
-    bulletConstraint.h \
+    bulletAllHitsRayResult.h bulletAllHitsRayResult.I \
+    bulletBaseCharacterControllerNode.h bulletBaseCharacterControllerNode.I \
+    bulletBodyNode.h bulletBodyNode.I \
+    bulletBoxShape.h bulletBoxShape.I \
+    bulletCapsuleShape.h bulletCapsuleShape.I \
+    bulletCharacterControllerNode.h bulletCharacterControllerNode.I \
+    bulletClosestHitRayResult.h bulletClosestHitRayResult.I \
+    bulletClosestHitSweepResult.h bulletClosestHitSweepResult.I \
+    bulletConeShape.h bulletConeShape.I \
+    bulletConeTwistConstraint.h bulletConeTwistConstraint.I \
+    bulletConstraint.h bulletConstraint.I \
     bulletContactCallbacks.h \
     bulletContactCallbacks.h \
-    bulletContactResult.I \
-    bulletContactResult.h \
-    bulletConvexHullShape.I \
-    bulletConvexHullShape.h \
-    bulletConvexPointCloudShape.I \
-    bulletConvexPointCloudShape.h \
-    bulletCylinderShape.I \
-    bulletCylinderShape.h \
-    bulletDebugNode.I \
-    bulletDebugNode.h \
-    bulletGenericConstraint.I \
-    bulletGenericConstraint.h \
-    bulletGhostNode.I \
-    bulletGhostNode.h \
-    bulletHeightfieldShape.I \
-    bulletHeightfieldShape.h \
-    bulletHelper.I \
-    bulletHelper.h \
-    bulletHingeConstraint.I \
-    bulletHingeConstraint.h \
-    bulletManifoldPoint.I \
-    bulletManifoldPoint.h \
-    bulletPersistentManifold.I \
-    bulletPersistentManifold.h \
-    bulletPlaneShape.I \
-    bulletPlaneShape.h \
-    bulletRigidBodyNode.I \
-    bulletRigidBodyNode.h \
-    bulletShape.I \
-    bulletShape.h \
-    bulletSliderConstraint.I \
-    bulletSliderConstraint.h \
-    bulletSoftBodyConfig.I \
-    bulletSoftBodyConfig.h \
-    bulletSoftBodyMaterial.I \
-    bulletSoftBodyMaterial.h \
-    bulletSoftBodyNode.I \
-    bulletSoftBodyNode.h \
-    bulletSoftBodyShape.I \
-    bulletSoftBodyShape.h \
-    bulletSoftBodyWorldInfo.I \
-    bulletSoftBodyWorldInfo.h \
-    bulletSphereShape.I \
-    bulletSphereShape.h \
-    bulletSphericalConstraint.I \
-    bulletSphericalConstraint.h \
-    bulletTriangleMesh.I \
-    bulletTriangleMesh.h \
-    bulletTriangleMeshShape.I \
-    bulletTriangleMeshShape.h \
-    bulletVehicle.I \
-    bulletVehicle.h \
-    bulletWheel.I \
-    bulletWheel.h \
-    bulletWorld.I \
-    bulletWorld.h \
+    bulletContactResult.h bulletContactResult.I \
+    bulletConvexHullShape.h bulletConvexHullShape.I \
+    bulletConvexPointCloudShape.h bulletConvexPointCloudShape.I \
+    bulletCylinderShape.h bulletCylinderShape.I \
+    bulletDebugNode.h bulletDebugNode.I \
+    bulletGenericConstraint.h bulletGenericConstraint.I \
+    bulletGhostNode.h bulletGhostNode.I \
+    bulletHeightfieldShape.h bulletHeightfieldShape.I \
+    bulletHelper.h bulletHelper.I \
+    bulletHingeConstraint.h bulletHingeConstraint.I \
+    bulletManifoldPoint.h bulletManifoldPoint.I \
+    bulletMultiSphereShape.h bulletMultiSphereShape.I \
+    bulletPersistentManifold.h bulletPersistentManifold.I \
+    bulletPlaneShape.h bulletPlaneShape.I \
+    bulletRigidBodyNode.h bulletRigidBodyNode.I \
+    bulletShape.h bulletShape.I \
+    bulletSliderConstraint.h bulletSliderConstraint.I \
+    bulletSoftBodyConfig.h bulletSoftBodyConfig.I \
+    bulletSoftBodyMaterial.h bulletSoftBodyMaterial.I \
+    bulletSoftBodyNode.h bulletSoftBodyNode.I \
+    bulletSoftBodyShape.h bulletSoftBodyShape.I \
+    bulletSoftBodyWorldInfo.h bulletSoftBodyWorldInfo.I \
+    bulletSphereShape.h bulletSphereShape.I \
+    bulletSphericalConstraint.h bulletSphericalConstraint.I \
+    bulletTriangleMesh.h bulletTriangleMesh.I \
+    bulletTriangleMeshShape.h bulletTriangleMeshShape.I \
+    bulletVehicle.h bulletVehicle.I \
+    bulletWheel.h bulletWheel.I \
+    bulletWorld.h bulletWorld.I \
     bullet_includes.h \
     bullet_includes.h \
-    bullet_utils.I \
-    bullet_utils.h \
-    config_bullet.h \
+    bullet_utils.h bullet_utils.I \
+    config_bullet.h
 
 
   #define INCLUDED_SOURCES \
   #define INCLUDED_SOURCES \
     bulletAllHitsRayResult.cxx \
     bulletAllHitsRayResult.cxx \
+    bulletBaseCharacterControllerNode.cxx \
     bulletBodyNode.cxx \
     bulletBodyNode.cxx \
     bulletBoxShape.cxx \
     bulletBoxShape.cxx \
     bulletCapsuleShape.cxx \
     bulletCapsuleShape.cxx \
@@ -114,6 +78,7 @@
     bulletHelper.cxx \
     bulletHelper.cxx \
     bulletHingeConstraint.cxx \
     bulletHingeConstraint.cxx \
     bulletManifoldPoint.cxx \
     bulletManifoldPoint.cxx \
+    bulletMultiSphereShape.cxx \
     bulletPersistentManifold.cxx \
     bulletPersistentManifold.cxx \
     bulletPlaneShape.cxx \
     bulletPlaneShape.cxx \
     bulletRigidBodyNode.cxx \
     bulletRigidBodyNode.cxx \
@@ -131,91 +96,54 @@
     bulletVehicle.cxx \
     bulletVehicle.cxx \
     bulletWheel.cxx \
     bulletWheel.cxx \
     bulletWorld.cxx \
     bulletWorld.cxx \
-    p3bullet_composite.cxx \
     bullet_utils.cxx \
     bullet_utils.cxx \
-    config_bullet.cxx \
+    config_bullet.cxx
 
 
   #define INSTALL_HEADERS \
   #define INSTALL_HEADERS \
-    bulletAllHitsRayResult.I \
-    bulletAllHitsRayResult.h \
-    bulletBodyNode.I \
-    bulletBodyNode.h \
-    bulletBoxShape.I \
-    bulletBoxShape.h \
-    bulletCapsuleShape.I \
-    bulletCapsuleShape.h \
-    bulletCharacterControllerNode.I \
-    bulletCharacterControllerNode.h \
-    bulletClosestHitRayResult.I \
-    bulletClosestHitRayResult.h \
-    bulletClosestHitSweepResult.I \
-    bulletClosestHitSweepResult.h \
-    bulletConeShape.I \
-    bulletConeShape.h \
-    bulletConeTwistConstraint.I \
-    bulletConeTwistConstraint.h \
-    bulletConstraint.I \
-    bulletConstraint.h \
+    bulletAllHitsRayResult.h bulletAllHitsRayResult.I \
+    bulletBaseCharacterControllerNode.h bulletBaseCharacterControllerNode.I \
+    bulletBodyNode.h bulletBodyNode.I \
+    bulletBoxShape.h bulletBoxShape.I \
+    bulletCapsuleShape.h bulletCapsuleShape.I \
+    bulletCharacterControllerNode.h bulletCharacterControllerNode.I \
+    bulletClosestHitRayResult.h bulletClosestHitRayResult.I \
+    bulletClosestHitSweepResult.h bulletClosestHitSweepResult.I \
+    bulletConeShape.h bulletConeShape.I \
+    bulletConeTwistConstraint.h bulletConeTwistConstraint.I \
+    bulletConstraint.h bulletConstraint.I \
     bulletContactCallbacks.h \
     bulletContactCallbacks.h \
-    bulletContactResult.I \
-    bulletContactResult.h \
-    bulletConvexHullShape.I \
-    bulletConvexHullShape.h \
-    bulletConvexPointCloudShape.I \
-    bulletConvexPointCloudShape.h \
-    bulletCylinderShape.I \
-    bulletCylinderShape.h \
-    bulletDebugNode.I \
-    bulletDebugNode.h \
-    bulletGenericConstraint.I \
-    bulletGenericConstraint.h \
-    bulletGhostNode.I \
-    bulletGhostNode.h \
-    bulletHeightfieldShape.I \
-    bulletHeightfieldShape.h \
-    bulletHelper.I \
-    bulletHelper.h \
-    bulletHingeConstraint.I \
-    bulletHingeConstraint.h \
-    bulletManifoldPoint.I \
-    bulletManifoldPoint.h \
-    bulletPersistentManifold.I \
-    bulletPersistentManifold.h \
-    bulletPlaneShape.I \
-    bulletPlaneShape.h \
-    bulletRigidBodyNode.I \
-    bulletRigidBodyNode.h \
-    bulletShape.I \
-    bulletShape.h \
-    bulletSliderConstraint.I \
-    bulletSliderConstraint.h \
-    bulletSoftBodyConfig.I \
-    bulletSoftBodyConfig.h \
-    bulletSoftBodyMaterial.I \
-    bulletSoftBodyMaterial.h \
-    bulletSoftBodyNode.I \
-    bulletSoftBodyNode.h \
-    bulletSoftBodyShape.I \
-    bulletSoftBodyShape.h \
-    bulletSoftBodyWorldInfo.I \
-    bulletSoftBodyWorldInfo.h \
-    bulletSphereShape.I \
-    bulletSphereShape.h \
-    bulletSphericalConstraint.I \
-    bulletSphericalConstraint.h \
-    bulletTriangleMesh.I \
-    bulletTriangleMesh.h \
-    bulletTriangleMeshShape.I \
-    bulletTriangleMeshShape.h \
-    bulletVehicle.I \
-    bulletVehicle.h \
-    bulletWheel.I \
-    bulletWheel.h \
-    bulletWorld.I \
-    bulletWorld.h \
+    bulletContactResult.h bulletContactResult.I \
+    bulletConvexHullShape.h bulletConvexHullShape.I \
+    bulletConvexPointCloudShape.h bulletConvexPointCloudShape.I \
+    bulletCylinderShape.h bulletCylinderShape.I \
+    bulletDebugNode.h bulletDebugNode.I \
+    bulletGenericConstraint.h bulletGenericConstraint.I \
+    bulletGhostNode.h bulletGhostNode.I \
+    bulletHeightfieldShape.h bulletHeightfieldShape.I \
+    bulletHelper.h bulletHelper.I \
+    bulletHingeConstraint.h bulletHingeConstraint.I \
+    bulletManifoldPoint.h bulletManifoldPoint.I \
+    bulletMultiSphereShape.h bulletMultiSphereShape.I \
+    bulletPersistentManifold.h bulletPersistentManifold.I \
+    bulletPlaneShape.h bulletPlaneShape.I \
+    bulletRigidBodyNode.h bulletRigidBodyNode.I \
+    bulletShape.h bulletShape.I \
+    bulletSliderConstraint.h bulletSliderConstraint.I \
+    bulletSoftBodyConfig.h bulletSoftBodyConfig.I \
+    bulletSoftBodyMaterial.h bulletSoftBodyMaterial.I \
+    bulletSoftBodyNode.h bulletSoftBodyNode.I \
+    bulletSoftBodyShape.h bulletSoftBodyShape.I \
+    bulletSoftBodyWorldInfo.h bulletSoftBodyWorldInfo.I \
+    bulletSphereShape.h bulletSphereShape.I \
+    bulletSphericalConstraint.h bulletSphericalConstraint.I \
+    bulletTriangleMesh.h bulletTriangleMesh.I \
+    bulletTriangleMeshShape.h bulletTriangleMeshShape.I \
+    bulletVehicle.h bulletVehicle.I \
+    bulletWheel.h bulletWheel.I \
+    bulletWorld.h bulletWorld.I \
     bullet_includes.h \
     bullet_includes.h \
-    bullet_utils.I \
-    bullet_utils.h \
+    bullet_utils.h bullet_utils.I \
+    config_bullet.h
 
 
   #define IGATESCAN all
   #define IGATESCAN all
 
 

+ 2 - 2
panda/src/bullet/bulletBaseCharacterControllerNode.h

@@ -43,8 +43,8 @@ public:
   virtual bool safe_to_combine_children() const;
   virtual bool safe_to_combine_children() const;
   virtual bool safe_to_flatten_below() const;
   virtual bool safe_to_flatten_below() const;
 
 
-  INLINE virtual btPairCachingGhostObject *get_ghost() const = 0;
-  INLINE virtual btCharacterControllerInterface *get_character() const = 0;
+  virtual btPairCachingGhostObject *get_ghost() const = 0;
+  virtual btCharacterControllerInterface *get_character() const = 0;
 
 
   virtual void sync_p2b(PN_stdfloat dt, int num_substeps) = 0;
   virtual void sync_p2b(PN_stdfloat dt, int num_substeps) = 0;
   virtual void sync_b2p() = 0;
   virtual void sync_b2p() = 0;