klumhru / boost-python-bullet

Thin boost based python wrapper for bullet physics sdk
MIT License
6 stars 1 forks source link

contact tests cannot be performed ( bullet.ContactResultCallback cannot be instantiated ) #11

Open jf--- opened 10 years ago

jf--- commented 10 years ago

right now it seems impossible to find out which entities are colliding:

ipdb> self.dynamics_world.collision_world.contact_test( self.ground_shape, bullet.ContactResultCallback()) *\ RuntimeError: This class cannot be instantiated from Python

affects convex_sweep_test, contact_test, contact_pair_test

jf--- commented 10 years ago

somewhat related: btCollisionWorld.getCollisionObjectArray() would probably be welcome too

k-maheshkumar commented 6 years ago

I am facing the same issue, is there any solution for it?. Also, is it possible to define custom callback function by inheriting bullet.ContactResultCallback through python?