public class WorldOfInception extends SimpleApplication implements AnalogListener
Modifier and Type | Class and Description |
---|---|
static class |
WorldOfInception.InceptionLevel |
flyCam, fpsText, guiFont, guiNode, INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_EXIT, INPUT_MAPPING_HIDE_STATS, INPUT_MAPPING_MEMORY, rootNode, showSettings
assetManager, audioRenderer, cam, context, guiViewPort, inputEnabled, inputManager, joyInput, keyInput, listener, lostFocusBehavior, mouseInput, paused, prof, renderer, renderManager, settings, speed, stateManager, timer, touchInput, viewPort
Constructor and Description |
---|
WorldOfInception() |
Modifier and Type | Method and Description |
---|---|
static Vector3f[] |
getPositions(int count,
long seed) |
static void |
main(java.lang.String[] args) |
static float |
mapValue(float x,
float min,
float max)
Maps a value from 0-1 to a range from min to max.
|
static float |
mapValue(float x,
float inputMin,
float inputMax,
float min,
float max)
Maps a value from inputMin to inputMax to a range from min to max.
|
void |
onAnalog(java.lang.String name,
float value,
float tpf)
Called to notify the implementation that an analog event has occurred.
|
void |
simpleInitApp() |
void |
simpleUpdate(float tpf) |
getFlyByCamera, getGuiNode, getRootNode, getSpeed, initialize, isShowSettings, loadGuiFont, setDisplayFps, setDisplayStatView, setShowSettings, setSpeed, simpleRender, start, update
createCanvas, destroy, destroyInput, enqueue, enqueue, gainFocus, getAppProfiler, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getLostFocusBehavior, getRenderer, getRenderManager, getStateManager, getTimer, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, runQueuedTasks, setAppProfiler, setAssetManager, setLostFocusBehavior, setPauseOnLostFocus, setSettings, setTimer, start, start, start, startCanvas, startCanvas, stop, stop
public static void main(java.lang.String[] args)
public void simpleInitApp()
simpleInitApp
in class SimpleApplication
public void onAnalog(java.lang.String name, float value, float tpf)
AnalogListener
onAnalog
in interface AnalogListener
name
- The name of the mapping that was invokedvalue
- Value of the axis, from 0 to 1.tpf
- The time per frame value.public void simpleUpdate(float tpf)
simpleUpdate
in class SimpleApplication
public static Vector3f[] getPositions(int count, long seed)
public static float mapValue(float x, float min, float max)
x
- min
- max
- public static float mapValue(float x, float inputMin, float inputMax, float min, float max)
x
- inputMin
- inputMax
- min
- max
-