@Override
    public void setSpatial(Spatial spatial) {
        this.spatial = spatial;
        setUserObject(spatial);
        if (spatial == null) {
            return;
        }
        setPhysicsLocation(spatial.getWorldTranslation());
        setPhysicsRotation(spatial.getWorldRotation().toRotationMatrix());
    }
Creates a new PhysicsNode with the supplied collision shape
@param shape the desired collision shape
jme3-examples/src/main/java/jme3test/bullet/PhysicsHoverControl.java