Game Development Community

Tracking Collisions in torque

by Pedro Venceslau · in Torque Game Engine · 06/13/2004 (8:49 am) · 2 replies

Hello torque friends!

1. Could anyone tell me how can I track the player collisions with the other objects in the fps demo? I have tried debugging to find the piece of code in some functions in player.cc and ShapeBase.cc that handles the object collisions and has access to the object with wich the player is colliding...but I couldn't find it...


2. I am trying to build an object that when colliding with another: stores in an object list the reference to the other object, and makes it part of it, creating a more complex object: translating the object makes the other ones stored in the list to translate with it.
2.1 Is there a problem doing this?
2.2 Beggining in 1. is a good start?
2.3 How can I relate a .dts to my .cc file and make it available in the world creator treeview? - pardon my ignorance!

Tanks the atention and good work!

#1
06/13/2004 (9:22 am)
This should be in Private area to talk about source, so all i can say now is you should be looking at shapebase onCollision() function.
#2
06/14/2004 (4:49 am)
Thanks Westy. I'll do that!