Game Development Community

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

#1
03/09/2006 (6:58 am)
If you are using the Beta then setGroup has changed to setGraphGroup. These things are annoying, I know.

-Peter
#2
03/09/2006 (7:13 am)
Thanks Peter! It's working now!