Package com.jme.input.action

Examples of com.jme.input.action.KeyNodeBackwardAction


  private void setActions(Spatial node) {
    KeyNodeForwardAction forward = new KeyNodeForwardAction(node, 50f);
    //PhysicsMoveKeyAction forward = new PhysicsMoveKeyAction(tank, 2000000f);
    addAction(forward, "forward", true);

    KeyNodeBackwardAction backward = new KeyNodeBackwardAction(node, 40f);
    //PhysicsMoveKeyAction backward = new PhysicsMoveKeyAction(tank, -2000000f);
    addAction(backward, "backward", true);

    KeyNodeRotateRightAction rotateRight = new KeyNodeRotateRightAction(node, 5f);
    rotateRight.setLockAxis(node.getLocalRotation().getRotationColumn(1));
View Full Code Here

TOP

Related Classes of com.jme.input.action.KeyNodeBackwardAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.