@Override
    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (space != null) {
            if (enabled && !added) {
                if (spatial != null) {
                    setPhysicsLocation(getSpatialTranslation());
                    setPhysicsRotation(getSpatialRotation());
                }
                space.addCollisionObject(this);
                added = true;
            } else if (!enabled && added) {
                space.removeCollisionObject(this);
                added = false;
            }
        }
    }
Enable or disable this control.
<p>
When the control is disabled, the ghost object is removed from physics
space. When the control is enabled again, the object is moved to the
current location of the spatial and then added to the physics space.

@param enabled true&rarr;enable the control, false&rarr;disable it
jme3-jbullet/src/main/java/com/jme3/bullet/control/GhostControl.java