Game Development Community

Collision response Question

by Steve George · in Torque Game Builder · 05/31/2006 (5:55 pm) · 3 replies

I'm sure this is a trivial question but I need to register collision on both (send/receive) of each object but I DO NOT want a collision response. I want them to call the collision callbacks but not react. Anyone care to give me a hint :)

#1
05/31/2006 (9:44 pm)
Just use :

$player.setCollisionActive( true, true ); 
   $player.setCollisionPhysics( false, false ); 
   $player.setCollisionCallback( true );

change $player for your object.
#2
06/02/2006 (8:34 pm)
Thanks Bruno for the info. I guess I don't fully understand all the details of the collision system yet.Im just now discovering that I don't really need to set both collision flags to true. looks like I was doing redundant collision checks for nothing.
#3
06/02/2006 (11:01 pm)
Basically enabling the "Collision" will trigger a possible response... if you check callback it will call the script callback function. The "Physics" is the actual physics response, such as bounce, clamp, rigid, etc... so you can just get the collision response and handle it yourself in script or use the physics, or both :)