Game Development Community

Collision with Terrain vs. Interior vs. Object

by Jesse P · in Torque Game Engine · 12/22/2007 (11:20 am) · 2 replies

Hey what would the torquescript code be that determines if a projectile has collided with an interior, a terrain, or an object? Would that be in the weapon code and onCollision function? If so what would the syntax/code look like? Thanks

#1
12/22/2007 (2:30 pm)
You can look in the tutorial pdf in the example directory to see what the collision code looks like. When an object collides with another object and the collision function is called it will give you the id of the object that did the colliding and the object that it collided with. I'm not sure what it does it returns if the object collided with terrain.
#2
12/22/2007 (10:25 pm)
Thanks