Game Development Community

Triggers interfere with projectiles

by Jesse Liles · in Torque Game Engine · 01/23/2006 (4:04 pm) · 1 replies

I am having a problem with triggers in TGE 1.4. I have set up a controlPoint trigger that I scale from within the
mission editor to work as a 'capturable zone' something like battlefield 1942. I have all of the code working. The problem lies in the fact that projectiles (specifically, fast moving bullet projectiles, I haven't tried others)
when fired through the trigger from outside the trigger, will have their trajectory modified, ie, the bullet hits significantly above the crosshair when fired through a trigger, otherwise it's very accurate. The other problem with the triggers is that bullets fired from inside the trigger do not seem to come out of the gun, they do not impact anything, and there is no decal/bullet hole left behind or any explosion. The muzzle flash occurs and a shell casing is ejected, so I know the gun is firing. Anybody have suggestions or even a possible explanation of why this is happening?

#1
02/15/2006 (10:03 am)
I'm not too good with projectiles, but I wonder if it has something to do with collision checking. Is the projectile::onCollision routine using $TypeMasks::ShapeBaseObjectType, or something else?