Game Development Community

Collision and Triggers

by Jim Klein · in Technical Issues · 04/22/2006 (7:52 am) · 3 replies

Seems like a simple question but I figured I'd ask before the time comes to code and I have no idea what to do- Basically for our FFP, we are going to have a room with a door. The player will have to hit a switch (either jump on, use a keyboard key, etc.) to open the door after killing some enemies.

My question is, how would I code collision detection for the "door" object so the player cannot run through it and how would I go about coding a trigger for the switch (I was thinking of just destroying the door or having it move?)? Thanks.

#1
04/23/2006 (12:41 am)
Is this for Torque, or a different game engine?
#2
04/23/2006 (3:58 am)
Um, gee, I wonder what engine I could be using...hm..could it be Torque? Nah, can't possibly be Torque........


ITS TORQUE!!!!
#3
04/23/2006 (3:22 pm)
Hey, just asking, It's in general technical issues.
This resource should help: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10200