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);
}
}