RC3: CollisionActive* always turned on for t2dTriggers
by Alex Rice · in Torque Game Builder · 06/16/2006 (10:40 pm) · 2 replies
1. Launch TGB open TGB project and start a new level untitled.t2d
2. Drag a trigger onto the level
3. Look at Edit>Collision and observe that Send Collision and Receive Collision are both checked . This seems to be a bug because according to the docs, and for other t2dSceneObjects I have tested, the levelbuilder and the engine enforce the defaults to be:
6. Look at untitled.t2d again and confirm CollisionActiveReceive and Send are not written. Presumably defaulting to 0 according to the doc.
8. Ctrl-S again and look at untitled.t2d again. They are always turned back on:
2. Drag a trigger onto the level
3. Look at Edit>Collision and observe that Send Collision and Receive Collision are both checked . This seems to be a bug because according to the docs, and for other t2dSceneObjects I have tested, the levelbuilder and the engine enforce the defaults to be:
Quote:in TGB Reference.pdf :4. Ctrl-S to save and look at untitled.t2d with an editor to confirm:
CollisionActiveReceive = "0"
CollisionActiveSend = "0"
CollisionActiveSend = "1"; CollisionActiveReceive = "1";5. Uncheck Send Collision and Receive Collision, then Ctrl-S to save and quit out of TGB [edit: we will restart in a couple]
6. Look at untitled.t2d again and confirm CollisionActiveReceive and Send are not written. Presumably defaulting to 0 according to the doc.
new t2dTrigger() {
position = "-7.82 -11.9";
size = "16 16";
mountID = "2";
};7. Launch TGB and go to Edit>Collision. Note that Send Collision and Receive Collision are mysteriously checked again8. Ctrl-S again and look at untitled.t2d again. They are always turned back on:
CollisionActiveSend = "1"; CollisionActiveReceive = "1";
About the author
#2
06/16/2006 (10:58 pm)
Turning off all collision layers or putting CollisionLayers = "0"; onEnter and onLeave ARE still called. Indicating that CollisionActive is not required for t2dTrigger to do it's job. OnStay() is apparently never called, so I will open a separate report about that.
Torque Owner Alex Rice
Default Studio Name