[newbe] kinematic objects collison

yinono
Posts: 2
Joined: Thu Apr 29, 2010 2:15 pm

[newbe] kinematic objects collison

Post by yinono »

Hi,
I guess my question has been answered before but I couldn't find any good solution in other posts.

I want to have a world where there are only few dynamic objects and many kinematic objects.
I want to be able to get collision reports for any object pair in the world, especially Kinematic - Kinematic pairs.
I try configured 2 rigid bodies using :

Code: Select all

btRigidBody *body = new btRigidBody(0, mState, shape, localInertiaTensor);
mWorld->addRigidBody(body);
body ->setCollisionFlags(body->getCollisionFlags() ^ btCollisionObject::CF_KINEMATIC_OBJECT);


Then I stepped the simulation and look at the contactManifolds.
There is always 0 contactManifolds even when the kinematic rigid bodies overlap.
How can I get collision reports for such cases?

I'm also interested in having "transparent" bodies. Objects that can move in the world and I can get report on their collisions with other object but they won't effect the simulation in any other way.
What is the best way to achieve such behavior?

Thanks
yinono