Bullet Open Source Physics Library 1.5.8を使用して、Panda3D 1.10 を使用してゲームを作成しています。卵ファイルから衝突形状を生成するにはどうすればよいですか?
これは私がこれまでに持っているコードです:
tree = BulletRigidBodyNode('Tree')
tree.setMass(10.0)
shape = getCollisionFromEgg('tree.egg') # This is the 'magic function' I'm after
tree.addShape(shape)
np = render.attachNewNode(tree)
np.setPos(10, 0, 2)
self.world.attachRigidBody(tree)
model = loader.loadModel('tree.egg')
model.reparentTo(np)