Examples of ShotController


Examples of net.cis.client.game.scenery.ctrl.ShotController

  public void onAction(String name, boolean isPressed, float tpf) {
    if (name.equals("Shoot") && !isPressed) {
      Geometry shot = makeSphere("shot", 0.2f);

      shot.setLocalTranslation(cam.getDirection());
      shot.addControl(new ShotController(1f, 0.01f, cam.getDirection()));
      rootNode.attachChild(shot);
      shot.setCullHint(CullHint.Never);
    }

  }
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.