Game Development Community

Understanding Send & Receive Collisions

by Bruno Grieco · in Torque Game Builder · 03/25/2006 (5:12 pm) · 3 replies

I understand why there are those two kinds, but I'm not sure how to use'm

A missile would send a collision when it hits something & receive a collision when another missile hits him.

But a wall, should send or receive collisions ( or both ) ?

#1
03/26/2006 (4:28 am)
Send Collision: This is needed if you want other objects to react if they collide with this object
Receive Collision: If you want this object to react if it collides with another object

For a wall, you would use Send Collision, as a wall normally does not need to react to a collision (unless you have a destroyable environment)
#2
03/26/2006 (6:37 am)
So if the wall has a send collision, my player only needs a receive collision ?
#3
03/26/2006 (9:58 am)
You might want to take a look at the platformer tutorial in TDN, one of the first sections explains platformer physics and shows you how to set it up in TorqueScript. I believe the tutorial itself was updated for beta 1.1, so it might not work flawlessly in beta 2 as is. But for general theory on collisions/physics it should still help.