Package net.cis.client.game.scenery.ctrl

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

Related Classes of net.cis.client.game.scenery.ctrl.ShotController

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.