Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.rico.engine.controller
Class RotationXController

    java.lang.Object
      de.rico.engine.controller.RotationXController

All Implemented Interfaces:
  ControllerIface

    public class RotationXController

extends java.lang.Object
implements ControllerIface

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

Author:
  Frank Bruns

Constructor Summary
`RotationXController(AbstractMesh mesh, float speed)` Creates a new x-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

### RotationXController

    public RotationXController(AbstractMesh mesh,
                               float speed)

  Creates a new x-axis rotation controller with the specified speed value. The mesh will rotate down 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD