chandlerprall / GoblinPhysics

Collision Detection & Response in JavaScript
http://www.goblinphysics.com
Other
147 stars 18 forks source link

Error occurs: CompoundShape RigidBody collides with the MeshShape RigidBody #73

Open msykosch opened 2 years ago

msykosch commented 2 years ago

Hey, @chandlerprall.

I love your Goblin Physics ❤️

Unfortunately I identified a problem today (master and 0.10).

I created two Goblin.RigidBody:

  1. MeshShape()
  2. CompoundShape()

Both RigidBody are created correctly and run properly through world.step().

However, as soon as the CompoundShape RigidBody collides with the MeshShape RigidBody, an error occurs:

TypeError: contact.object_b.emit is not a function. (In 'contact.object_b.emit( ​​'speculativeContact', contact.object_a, contact )', 'contact.object_b.emit' is undefined)

Apparently there is a problem with MeshShape colliding with CompoundShape.

I ask you to help me. I would be happy to support you with a reasonable donation.