TOKSIM_SetCollisionResponse(CollisionID1%,CollisionID2%,Response%)
Parameters:
CollisionID1% = The collision ID for the 1st body
CollisionID2% = The collision ID for the 2nd body
Response% = The collision Response mode.
  • 0 = No impulse or feedback
  • 1 = Impulse only
  • 2 = Feedback only
  • 3 = Impulse & Feedback
Return value:
None
Description:
Sets how collisions are handled in tokamak. This is similar to the blitz collisions command. You don't have to set this, unless you want feedback, or you don't want impulse.

One thing to note about using this command, is that if you are trying to remove feedback, then call it twice with the first two parameters switched like this:

TOKSIM_SetCollisionResponse() TYPE_BALL, TYPE_PLAYER, 0
TOKSIM_SetCollisionResponse() TYPE_PLAYER, TYPE_BALL, 0

Assuming You don't want Type_Ball or Type_Player to collide with each other.
Response setup from TOKA_BOUNCE.bb
TOKSIM_SetCollisionResponse 0,1,3 ; Impulse & Feedback and all bodies with CollisionID 0 (ground) & 1 (balls) will give collisionfeedback



Documentation generated by Cod2Doc on 20 Jun 2004.