MinieLibrary/src/main/java/com/jme3/bullet/PhysicsSpace.java
/**
     * Callback invoked (by native code) just before the physics is stepped.
     *
     * @param timeStep the time per physics step (in seconds, &ge;0)
     */
Callback invoked (by native code) just before the physics is stepped.
@param timeStep the time per physics step (in seconds, ≥0)
Callback invoked ( by native code ) just before the physics is stepped . @param timeStep the time per physics step ( in seconds ≥0 )
private void preTick_native(float timeStep) {
        AppTask task;
        while ((task = pQueue.poll()) != null) {
            if (task.isCancelled()) {
                continue;
            }
            try {
                task.invoke();
            } catch (Exception exception) {
                logger.log(Level.SEVERE, null, exception);
            }
        }
        for (PhysicsTickListener listener : tickListeners) {
            listener.prePhysicsTick(this, timeStep);
        }
    }
private void preTick_native ( float timeStep ) { AppTask task ; while ( ( task = pQueue . poll ( ) ) != null ) { if ( task . isCancelled ( ) ) { continue ; } try { task . invoke ( ) ; } catch ( Exception exception ) { logger . log ( Level . SEVERE , null , exception ) ; } } for ( PhysicsTickListener listener : tickListeners ) { listener . prePhysicsTick ( this , timeStep ) ; } }
Callback invoked (by native code) just before the physics is stepped.
Callback invoked ( by native code ) just before the physics is stepped .