addToGroup( new SpriteMapCollisions( map, handler ), group );
}
private void addToGroup( BehaviorModel model, Group group ) {
VectorSpriteCollisionsModel collisions = (VectorSpriteCollisionsModel) findModel( VectorSpriteCollisionsModel.class );
if( collisions == null ) {
collisions = new VectorSpriteCollisionsModel();
collisions.active = true;
behaviorModels.add( collisions );
}
model.init( this );