Hello,
I’ve tried to use an egg file as a map for a test, and … look at the screen shots:
The code i used for the map is:
# Load the environment model.
self.map = self.loader.loadModel("models/map")
geom = self.map.findAllMatches('**/+GeomNode').getPath(0).node().getGeom(0)
mesh = BulletTriangleMesh()
mesh.addGeom(geom)
shape = BulletTriangleMeshShape(mesh, dynamic=False)
body = BulletRigidBodyNode('map')
bodyNP = self.worldNP.attachNewNode(body)
bodyNP.node().addShape(shape)
bodyNP.setCollideMask(BitMask32.allOn())
self.world.attachRigidBody(bodyNP.node())
self.map.reparentTo(bodyNP)
Where is the problem ? Blender 2.63 don’t export (with Yabee) the blend file, but with export directx and x2egg, i can use it with panda. But is it possible that there is a problem with the geom ?
Here is the blend and egg files : http://www.benicourt.com/bullet/models.rar