org.xith3d.physics.collision
Class CollisionCheck

java.lang.Object
  extended by org.xith3d.physics.collision.CollisionCheck

public class CollisionCheck
extends java.lang.Object

The CollisionCheck class is a simple wrapper for two Collideables, that are to be tested against each others by the CollisionEngine.

See Also:
CollisionEngine.addCollisionCheck(org.xith3d.physics.collision.CollisionCheck)

Constructor Summary
CollisionCheck(Collideable collideable1, Collideable collideable2)
           
CollisionCheck(Collideable collideable1, Collideable collideable2, boolean ignoreStatic)
           
CollisionCheck(Collideable collideable1, Collideable collideable2, boolean ignoreStatic, CollisionListener listener)
           
CollisionCheck(Collideable collideable1, Collideable collideable2, CollisionListener listener)
           
 
Method Summary
 Collideable getCollideable1()
           
 Collideable getCollideable2()
           
 CollisionListener getCollisionListener()
           
 boolean getIgnoreStatic()
           
 void setCollideable1(Collideable c)
           
 void setCollideable2(Collideable c)
           
 void setCollisionListener(CollisionListener cl)
          Sets the CollisionListener, that is being used instead of the CollisionEngine's default CollisionListener.
 void setIgnoreStaticCollisions(boolean ignoreStatic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionCheck

public CollisionCheck(Collideable collideable1,
                      Collideable collideable2,
                      boolean ignoreStatic,
                      CollisionListener listener)

CollisionCheck

public CollisionCheck(Collideable collideable1,
                      Collideable collideable2,
                      boolean ignoreStatic)

CollisionCheck

public CollisionCheck(Collideable collideable1,
                      Collideable collideable2,
                      CollisionListener listener)

CollisionCheck

public CollisionCheck(Collideable collideable1,
                      Collideable collideable2)
Method Detail

setCollideable1

public final void setCollideable1(Collideable c)

getCollideable1

public final Collideable getCollideable1()

setCollideable2

public final void setCollideable2(Collideable c)

getCollideable2

public final Collideable getCollideable2()

setIgnoreStaticCollisions

public final void setIgnoreStaticCollisions(boolean ignoreStatic)

getIgnoreStatic

public final boolean getIgnoreStatic()

setCollisionListener

public final void setCollisionListener(CollisionListener cl)
Sets the CollisionListener, that is being used instead of the CollisionEngine's default CollisionListener.

Parameters:
cl -

getCollisionListener

public final CollisionListener getCollisionListener()
Returns:
the CollisionListener, that is being used instead of the CollisionEngine's default CollisionListener.