@Override
    public void onAction(String name, boolean keyPressed, float tpf) {
      if (name.equals("shoot") && !keyPressed) {
        makeCannonBall();
      }
    }
Every time the shoot action is triggered, a new cannonball is produced.
The ball is set up to fly from the camera position in the camera direction.
jme3-examples/src/main/java/jme3test/helloworld/HelloPhysics.java