Filter Objects of coincident line

Post Reply
sky
Posts: 3
Joined: Mon May 12, 2014 7:32 am

Filter Objects of coincident line

Post by sky »

I create two btConvexHullShape shapes,here are the two shapes by debug draw:
1111.png
1111.png (9.69 KiB) Viewed 5747 times
they are separated as yellow color and blue color.
Bullet detects collision on the border, but this is not what I want,
here are the codes of collision world:
_collisionConfiguration = new btDefaultCollisionConfiguration();
_dispatcher = new btCollisionDispatcher(_collisionConfiguration);
_solver = new btSequentialImpulseConstraintSolver;
_broadphase = new btDbvtBroadphase();
_collisionWorld = new btDiscreteDynamicsWorld(_dispatcher, _broadphase, _solver , _collisionConfiguration);
_debugDrawer = new CollisionDebugDrawer();
_collisionWorld->setDebugDrawer(_debugDrawer);
if two shapes have a coincident border, I don't want they have a collision result.how should I do to avoid this?
Post Reply