MinieLibrary/src/main/java/com/jme3/bullet/control/BetterCharacterControl.java
/**
     * Updates the local coordinate system from the localForward and localUp
     * vectors, adapts localForward, sets localForwardRotation to local
     * Z-forward rotation.
     */
Updates the local coordinate system from the localForward and localUp
vectors, adapts localForward, sets localForwardRotation to local
Z-forward rotation.
Updates the local coordinate system from the localForward and localUp vectors adapts localForward sets localForwardRotation to local Z - forward rotation .
protected void updateLocalCoordinateSystem() {
        calculateNewForward(localForwardRotation, localForward, localUp);
        localLeft.set(localUp).crossLocal(localForward);
        rigidBody.setPhysicsRotation(localForwardRotation);
        updateLocalViewDirection();
    }
protected void updateLocalCoordinateSystem ( ) { calculateNewForward ( localForwardRotation , localForward , localUp ) ; localLeft . set ( localUp ) . crossLocal ( localForward ) ; rigidBody . setPhysicsRotation ( localForwardRotation ) ; updateLocalViewDirection ( ) ; }
Updates the local coordinate system from the localForward and localUp
 vectors, adapts localForward, sets localForwardRotation to local
 Z-forward rotation.
Updates the local coordinate system from the localForward and localUp vectors adapts localForward sets localForwardRotation to local Z - forward rotation .
//gravity vector has possibly changed, calculate new world forward (UNIT_Z)