Game Development Community

Objects colliding with triggers

by Neil Marshall · in Torque Game Engine · 09/06/2002 (3:40 pm) · 5 replies

I've added the ability to throw objects in my game by taking some of
this code.

The problem I've run into is the objects are bouncing off of triggers that I have placed in the world for something else. To the user, the objects are bouncing off of nothing.

How do I make it so they go right through the trigger?

#1
09/07/2002 (8:48 am)
The onCollision event doesn't seem to be firing, and I've been trying to figure out what static and collision do in the datablock, so tried setting static = 1 and collision = 1, but they don't change from 0.
#2
09/07/2002 (11:04 am)
Okay, I got this to work. In item.cc I commented out the TriggerObjectType portion in sServerCollisionMask

Everything works as I'd expect it. Now my question is, what did I break? Why was that defined in the first place?

I can still walk through triggers and I can still drive through triggers, but I must have messed up something. :)
#3
04/30/2003 (8:38 am)
any way to allow items/statics to pass through triggers via script ?

players and vehicles can, is there a flag to set to allow other items to do the same ?
#4
06/05/2004 (10:18 am)
Has anyone been able to do this in script?
#5
06/05/2004 (12:19 pm)
It might have just been a SNAFU in the original code. There are lots of little things like that. It might have been in there for a good reason that later became irrelevant, but no one changed it back.

I've put this on my todo list of patches to look at.