private void bulletControl() {
        composer.setCurrentAction("shootOnce", "shootingLayer");

        Geometry bulletGeometry = new Geometry("bullet", bullet);
        bulletGeometry.setMaterial(matBullet);
        bulletGeometry.setShadowMode(ShadowMode.CastAndReceive);
        bulletGeometry.setLocalTranslation(character.getPhysicsLocation().add(cam.getDirection().mult(5)));
        RigidBodyControl bulletControl = new BombControl(bulletCollisionShape, 1);
        bulletControl.setCcdMotionThreshold(0.1f);
        bulletControl.setLinearVelocity(cam.getDirection().mult(80));
        bulletGeometry.addControl(bulletControl);
        rootNode.attachChild(bulletGeometry);
        getPhysicsSpace().add(bulletControl);
    }
A walking animated character followed by a 3rd person camera on a terrain with LOD.
@author normenhansen
jme3-examples/src/main/java/jme3test/bullet/TestWalkingChar.java