Static Shapes to set off a trigger?
by Kip · in Torque Game Engine · 07/17/2006 (2:52 pm) · 5 replies
I need to have a static object actually cause a trigger to activate when it is within the trigger bounds. So if i have a box within a trigger area then it needs to trigger the onEnter, onLeave, or onTick function of a trigger. Is this possible in script or does it require some code changes?
Thanks!
Thanks!
#2
07/18/2006 (10:23 am)
Would it be wise to make it just check static shapes or should i change it by adding addition class that derives from static shape?
#3
07/21/2006 (12:30 pm)
Ok I went in and looked at the code. I copied the StaticShape.h/.cc and made my own class and have it working just like Static Shapes. Now I need to get it to check for trigger collisions. I see that player.cc has a function to check for contact and then checks for collision with a trigger. Do i need to reimplement that with my new shape?
#4
07/21/2006 (1:54 pm)
BTW, Kip - You might want to move this to the private forum since you're starting to discuss actual engine code.
#5
07/22/2006 (1:49 pm)
This was put on hold for the time due to some time constraints. I was trying to keep the code to a minimum. I dont think im going to get any answers so Ill leave it here for now. If i get anyone who would answer if it was put there, Ill move it. Thanks.
Associate Anthony Rosenbaum