com.jme3.cinematic.events.AbstractCinematicEvent Java Examples

The following examples show how to use com.jme3.cinematic.events.AbstractCinematicEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Cinematic.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 6 votes vote down vote up
public void activateCamera(float timeStamp, final String cameraName) {
    addCinematicEvent(timeStamp, new AbstractCinematicEvent() {

        @Override
        public void onPlay() {
            setActiveCamera(cameraName);
            stop();
        }

        @Override
        public void onUpdate(float tpf) {
        }

        @Override
        public void onStop() {
        }

        @Override
        public void onPause() {
        }
    });
}