Panda Bullet

First of all enn0x: congrats on 1000 posts :slight_smile:

Secondly, I’ve upgrade to 1.8.0 release and have found a bug, I’ve been able to confirm that it happens on ubuntu 64 bit but not on Windows platform.

The problem occurs when I attempt to do following (simplified) code:

world = BulletWorld()
body = BulletRigidBodyNode()
world.attachRigidBody(body)

body.set_mass( 100 )
body.set_angular_damping(0)
body.set_linear_damping(0)

mesh = BulletTriangleMesh()
mesh.addGeom(...)
body.add_shape( BulletTriangleMeshShape(mesh, dynamic=True) )

def update():
	""" Gets called after each doPhysics call """
	contacts = world.contactTest(body).getContacts()
	for contact in contacts:
		mpt = contact.get_manifold_point()
		collide(mpt)

def collide(manifoldpoint):
	print("collide", manifoldpoint)
	impact_force = manifoldpoint.get_applied_impulse()
	print("impact_force:", impact_force)

The error occurs in the call manifoldpoint.get_applied_impulse() it just segfaults out. Ofcourse this only happens when a contact was happening with this body and it does not seem to crash at the first touch either, the print statements get called a few dozen times usually before it crashes.