org.xith3d.input.modules
Class SlidingColliderCheckCallback

java.lang.Object
  extended by org.xith3d.input.modules.SlidingColliderCheckCallback
All Implemented Interfaces:
ColliderCheckCallback

public class SlidingColliderCheckCallback
extends java.lang.Object
implements ColliderCheckCallback

This ColliderCheckCallback make the avatar slide at walls.


Constructor Summary
SlidingColliderCheckCallback(CollisionEngine collEngine, CollideableGroup collGroup)
           
 
Method Summary
 boolean checkCollision(Collideable avatarCollider)
          This is called from within the update() call.
 CollideableGroup getCollideableGroup()
           
 void setCollideableGroup(CollideableGroup collGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlidingColliderCheckCallback

public SlidingColliderCheckCallback(CollisionEngine collEngine,
                                    CollideableGroup collGroup)
Method Detail

setCollideableGroup

public final void setCollideableGroup(CollideableGroup collGroup)

getCollideableGroup

public final CollideableGroup getCollideableGroup()

checkCollision

public boolean checkCollision(Collideable avatarCollider)
Description copied from interface: ColliderCheckCallback
This is called from within the update() call.

Specified by:
checkCollision in interface ColliderCheckCallback
Returns:
true, if there was a collision