Can't ignore collisions in callback

Vectrex

16-08-2006 15:49:36

hi, I'm trying to make some trigger zone using materials and boxes spaced about the level. At the moment you can run into the box but you actually collide with it. I understand that if I return 0; from the userBegin and userProcess then that should ignore the collision? It doesn't seem to, and I know it's being called because I have log messages inside them.
Anyone made simple trigger zones that can paste a bit of code?

this is all mine is at the moment

int callback_lapMarker::userBegin(){
// TODO see if using this AABB test is faster and ignore the poly vs poly test.
// - might not be accurate enough (is AABB or OABB?)
return 0;
}


int callback_lapMarker::userProcess()
{
log("*** MARKER TRIGGERED ***");
return 0; // return 0 for no collision, only collision detection
}

walaber

16-08-2006 17:36:13

if you return 0 from userBegin(), userProcess() should not even be called... can you show where you setup your materials in your code?