MinieLibrary/src/main/java/com/jme3/bullet/control/BetterCharacterControl.java
/**
     * Update this Control. Invoked once per frame during the logical-state
     * update, provided the Control is added to a scene. Do not invoke directly
     * from user code.
     *
     * @param tpf the time interval between frames (in seconds, &ge;0)
     */
Update this Control. Invoked once per frame during the logical-state
update, provided the Control is added to a scene. Do not invoke directly
from user code.

@param tpf the time interval between frames (in seconds, ≥0)
Update this Control . Invoked once per frame during the logical - state update provided the Control is added to a scene . Do not invoke directly from user code . @param tpf the time interval between frames ( in seconds ≥0 )
@Override
    public void update(float tpf) {
        if (!isEnabled()) {
            return;
        }
        rigidBody.getPhysicsLocation(location);
        applyPhysicsTransform(location, rotation);
    }
@ Override public void update ( float tpf ) { if ( ! isEnabled ( ) ) { return ; } rigidBody . getPhysicsLocation ( location ) ; applyPhysicsTransform ( location , rotation ) ; }
Update this Control.
Update this Control .
//rotation has been set through viewDirection