Examples of KeyNodeRotateRightAction


Examples of com.jme.input.action.KeyNodeRotateRightAction

    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));
    //PhysicsRotateKeyAction rotateRight = new PhysicsRotateKeyAction(tank, -200000f);
    addAction(rotateRight, "turnRight", true);

    KeyNodeRotateLeftAction rotateLeft = new KeyNodeRotateLeftAction(node,5f);
    rotateLeft.setLockAxis(node.getLocalRotation().getRotationColumn(1));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.