Package com.jme.input.action

Examples of com.jme.input.action.KeyNodeForwardAction


   *
   * @param node
   *            the node to control.
   */
  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);
View Full Code Here

TOP

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

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.