org.xith3d.physics.collision
Interface CollideableGroup

All Superinterfaces:
Collideable, org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, Placeable
All Known Implementing Classes:
CollideableGroupBase

public interface CollideableGroup
extends Collideable

Group of Collideables, that can be handled like a Collideable itself.


Method Summary
 void addCollideable(Collideable c)
          Adds a Collideable to the Group.
 Collideable getChild(int i)
           
 int getChildrenCount()
           
 CollideableGroupType getGroupType()
           
 void removeAllCollideables()
          Removes all collideables.
 void removeCollideable(Collideable c)
          Removes a Collideable from the Group.
 
Methods inherited from interface org.xith3d.physics.collision.Collideable
getBaseGFX, getBody, getDebugGFX, getEngine, getInfo, getParent, getPosition, getPosition, getRotation, getRotation, getRotationMatrix, getRotationMatrix, getType, getUserObject, getWorldPos, getWorldPos, getWorldRot, getWorldRot, getWorldRotMat, getWorldRotMat, isEnabled, recomputeChildrenWorldCoords, recomputeWorldCoords, setBody, setEnabled, setPosition, setPosition, setPositionX, setPositionY, setPositionZ, setRotation, setRotation, setRotationMatrix, setRotationX, setRotationY, setRotationZ, setUserObject
 
Methods inherited from interface org.jagatoo.datatypes.NamableObject
setName
 
Methods inherited from interface org.jagatoo.datatypes.NamedObject
getName
 

Method Detail

getGroupType

CollideableGroupType getGroupType()
Returns:
the CollideableGroupType of this CollideableGroup.

addCollideable

void addCollideable(Collideable c)
Adds a Collideable to the Group.

Parameters:
c - the Collideable to add

removeCollideable

void removeCollideable(Collideable c)
Removes a Collideable from the Group.

Parameters:
c - the Collideable to remove

removeAllCollideables

void removeAllCollideables()
Removes all collideables.


getChild

Collideable getChild(int i)
Returns:
the i-th Collideable from the Group.

getChildrenCount

int getChildrenCount()
Returns:
the count of all Collideables in the Group.