de.rico.engine.controller
Class RotationYController

java.lang.Object
  extended by de.rico.engine.controller.RotationYController
All Implemented Interfaces:
ControllerIface

public class RotationYController
extends java.lang.Object
implements ControllerIface

This controller class can be used rotatate a mesh continuously around its y-axis.

Author:
Frank Bruns

Constructor Summary
RotationYController(AbstractMesh mesh, float speed)
          Creates a new y-axis rotation controller with the specified speed value.
 
Method Summary
 void update(long elapsedTime)
          This methods updates the controllers actions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotationYController

public RotationYController(AbstractMesh mesh,
                           float speed)
Creates a new y-axis rotation controller with the specified speed value. The mesh will rotate left initially. To change direction just specifiy a negative speed value.

Parameters:
mesh - mesh to rotate
speed - speed of rotation
Method Detail

update

public void update(long elapsedTime)
Description copied from interface: ControllerIface
This methods updates the controllers actions

Specified by:
update in interface ControllerIface
Parameters:
elapsedTime - time between two frames