Triggers and throwing objects problem
by Ronald J Nelson · in Torque Game Engine Advanced · 08/23/2009 (3:55 am) · 3 replies
I am having a problem that I have yet to test in a stock version of TGEA 1.81. I have not modified my trigger or item code so I am a bit confused. When I try to throw an object like a weapon while my player is in a trigger's area, it doesn't fall to the ground, but floats in the air.
I did find the source of the issue in the item object code where it is checking for collisions against triggers in the server collision mask.
When I comment this as follows in item.cpp:
The problem disappears. Is this a bug, or something that serves a purpose?
I did find the source of the issue in the item object code where it is checking for collisions against triggers in the server collision mask.
When I comment this as follows in item.cpp:
const U32 sServerCollisionMask = (sClientCollisionMask);// |
//TriggerObjectType);The problem disappears. Is this a bug, or something that serves a purpose?
#2
08/25/2009 (9:20 am)
Sorry I forgot that pretty important piece of information. It has been added above.
#3
08/26/2009 (9:19 am)
Well, Triggers are used for the turrets, if I remember right. So objects that don't collide with triggers can't be picked up by the AITurrets. However, colliding with a trigger shouldn't make Items stop dead, just register a collision. Have a look in whatever code makes Items move, and you'll probably have to fix it in cases where it's hitting a Trigger object. You want the collision to be registered, but not affect the Item's simulation.
Torque Owner Javier Canon