Game Development Community

SetCollisionSuppress

by Jason McIntosh · in Torque Game Builder · 06/20/2005 (12:51 pm) · 3 replies

If I call
%fxObj.setCollisionSuppress( true );
that should stop the object from sending or receiving collisions, right? It should be like the object isn't there, in terms of collisions. If this is the case, it doesn't work. If not, then I've misunderstood the purpose of this function. :)

#1
06/20/2005 (1:01 pm)
It does work, as I use it to make the player invincible for a little time.

Are you sure that %fxobj is the object that you think it is? If you're doing this in the onCollision callback, have you tried using %srcObj or %dstObj (depending on whether the object is the source or destination)?
#2
06/20/2005 (1:18 pm)
I'm glad to hear that it does work. I'll check my code again. Thanks for confirming that it's my fault. :)
#3
06/20/2005 (1:32 pm)
Doh, I found the problem. My apologies to Melv for jumping to conclusions about his wonderful code. :) I really try not to do that. *slapping self*