Bounce" is acting like "clamp" for bullets
by Jacob Wagner · in Torque Game Builder · 10/06/2007 (12:18 am) · 1 replies
I have a game and I have set up my player and player bullets exactly the same, except one was done through script and one was done through the level editor.
Here are the variables as seen through the debugger in torsion:
player is on layer 0 graph group 1
bullets are on layer 0 graph group 2
wall is on layer 0 graph group 4
bullets are set collision masks like this: %this.setCollisionMasks( BIT( $groupWall ) , BIT( 0) );
$groupWall = 4 of course
checking the collisions masks with "getcollisionmasks" reveal the same numbers as for the player
the wall was created in the editor and collides with all layers and groups
the bullets have these :
%this.setCollisionActive( true, false );
%this.setCollisionPhysics(true, false);
%this.setCollisionResponse(bounce);
checking in the debugger, the player and the bullets both have BOUNCE as their collision response
As far as I can tell the player and the bullets are set up exactly the same except one was done in script and one in the editor. For some weird reason the player bounces perfectly but the bullets 'slide' along the walls like CLAMP mode.
If anyone can help I appreciate it, I'm wracking my brain on this one and I have no clue why they are any different.
Here are the variables as seen through the debugger in torsion:
player is on layer 0 graph group 1
bullets are on layer 0 graph group 2
wall is on layer 0 graph group 4
bullets are set collision masks like this: %this.setCollisionMasks( BIT( $groupWall ) , BIT( 0) );
$groupWall = 4 of course
checking the collisions masks with "getcollisionmasks" reveal the same numbers as for the player
the wall was created in the editor and collides with all layers and groups
the bullets have these :
%this.setCollisionActive( true, false );
%this.setCollisionPhysics(true, false);
%this.setCollisionResponse(bounce);
checking in the debugger, the player and the bullets both have BOUNCE as their collision response
As far as I can tell the player and the bullets are set up exactly the same except one was done in script and one in the editor. For some weird reason the player bounces perfectly but the bullets 'slide' along the walls like CLAMP mode.
If anyone can help I appreciate it, I'm wracking my brain on this one and I have no clue why they are any different.
Torque Owner Jacob Wagner