Example #1
0
S_Chair::S_Chair( )
{
    AABox* aaBox = new AABox;
    aaBox->SetSize( 2.0f, 2.0f, 2.0f ); // CTODO: make better approximation
    aaBox->SetMass( 0.0f );
    SetCollide( aaBox );
}
Example #2
0
S_Chicken::S_Chicken( )
{
	AABox* aabox = new AABox;
	aabox->SetSize( CHICKEN_WIDTH_DEPTH, CHICKEN_HEIGHT, CHICKEN_WIDTH_DEPTH );
	SetCollide( aabox );

	Force* force = new Force;
	force->SetMaxVelocity( 3.0f );
	SetMoveForce( force );
}