add my own contact points

noxin
Posts: 2
Joined: Mon Oct 10, 2011 2:46 pm

add my own contact points

Post by noxin »

hello everyone,

i downloaded a basic demo on how to replace narrow collision detection in bullet
https://github.com/erwincoumans/experim ... basic_demo

the most stuff works like a charm ... i run my coll-det and compute the contact points.
Then i tried to add these points that bullet can handle these collisions.

Must i do more then these few steps?

Code: Select all

btManifoldResult contactPointResult(colObj0, colObj1);

btVector3 arg12(0,0,0);
btVector3 arg13(1,0,0);
btScalar depth = -1.0;

contactPointResult.addContactPoint(arg12, arg13, depth);
If i call contactPointResult.addContactPoint(...) i get a segmentation fault all the time :-/.

Best,
David