@Override
    public void setPhysicsSpace(PhysicsSpace space) {
        createVehicle(space);
        if (space == null) {
            if (this.space != null) {
                this.space.removeCollisionObject(this);
                this.space.removeTickListener(this);
            }
            this.space = space;
        } else {
            space.addCollisionObject(this);
            space.addTickListener(this);
        }
        this.space = space;
    }
Creates a new PhysicsNode with the supplied collision shape
@param shape the desired collision shape
jme3-examples/src/main/java/jme3test/bullet/PhysicsHoverControl.java