I have problems with trigger volumes. When collision (attached to some body) is setted as trigger, it still collide with anything else in the scene. I did something wrong, or they doesn't work yet?? I'm using core 300, compiled around half hear ago.
This is how i setted them up:
- Code: Select all
NewtonCollision *coll = NewtonCreateBox (mPhys, 40,-1,40, 10,0);
NewtonCollisionSetAsTriggerVolume(coll, 1);
NewtMgr::getSingleton()->DebugCollision(coll, mat); // custom debug
NewtonBody *body = NewtonCreateBody(mPhys, coll, &mat[0][0]);
NewtonBodySetMaterialGroupID(body, NewtMgr::getSingleton()->getMatIDTrigger());
NewtonDestroyCollision(coll);