com.sun.electric.plugins.j3d
Class J3DKeyCollision

java.lang.Object
  extended by Behavior
      extended by com.sun.electric.plugins.j3d.J3DKeyBehavior
          extended by com.sun.electric.plugins.j3d.J3DKeyCollision

public class J3DKeyCollision
extends J3DKeyBehavior

Inspired in example found in Daniel Selman's book "Java 3D Programming" For more information about the original example, contact Daniel Selman: daniel@selman.org Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Version:
0.1
Author:
Gilda Garreton

Field Summary
 
Fields inherited from class com.sun.electric.plugins.j3d.J3DKeyBehavior
FAST_SPEED, keyCriterion, NORMAL_SPEED, tGroup, transform
 
Constructor Summary
J3DKeyCollision(TransformGroup tg, View3DWindow collisionDetector)
           
 
Method Summary
protected  boolean updateTransform(boolean force)
          Method to apply given transformation
 
Methods inherited from class com.sun.electric.plugins.j3d.J3DKeyBehavior
altMove, controlMove, getMovementRate, initialize, moveAlongAxis, processKeyEvent, processStimulus, rotate, rotateAlongAxis, setHomeRotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J3DKeyCollision

public J3DKeyCollision(TransformGroup tg,
                       View3DWindow collisionDetector)
Method Detail

updateTransform

protected boolean updateTransform(boolean force)
Method to apply given transformation

Overrides:
updateTransform in class J3DKeyBehavior
Returns:
true if there was no collision