SetGroup function problem
by Gustavo Boni · in Torque Game Builder · 03/09/2006 (6:56 am) · 2 replies
Hi,
I'm following the Basic Tutorial and in the collision chapter, i have the following code:
// Set player's collision info:
$player.setGroup( 1 );
$player.setLayer( 1 );
$player.setCollisionActive( true, true );
$player.setCollisionPolyCustom( 4, "-1 0 -0.1 -0.6 0.98 0.15 -0.1 0.7" );
$player.setCollisionMasks( BIT(2), BIT(2) );
$player.setCollisionCallback( true );
The problem is that i got an error saying that the function "setGroup" is unknowed.
What is wrong?
Thanks in Advance,
Gustavo
I'm following the Basic Tutorial and in the collision chapter, i have the following code:
// Set player's collision info:
$player.setGroup( 1 );
$player.setLayer( 1 );
$player.setCollisionActive( true, true );
$player.setCollisionPolyCustom( 4, "-1 0 -0.1 -0.6 0.98 0.15 -0.1 0.7" );
$player.setCollisionMasks( BIT(2), BIT(2) );
$player.setCollisionCallback( true );
The problem is that i got an error saying that the function "setGroup" is unknowed.
What is wrong?
Thanks in Advance,
Gustavo
Associate Peter Robinson
-Peter