public class HelloPicking extends SimpleApplication
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 |
---|
HelloPicking() |
Modifier and Type | Method and Description |
---|---|
protected void |
initCrossHairs()
A centred plus sign to help the player aim.
|
protected void |
initMark()
A red ball that marks the last spot that was "hit" by the "shot".
|
static void |
main(java.lang.String[] args) |
protected Spatial |
makeCharacter() |
protected Geometry |
makeCube(java.lang.String name,
float x,
float y,
float z)
A cube object for target practice
|
protected Geometry |
makeFloor()
A floor to show that the "shot" can go through several objects.
|
void |
simpleInitApp() |
getFlyByCamera, getGuiNode, getRootNode, getSpeed, initialize, isShowSettings, loadGuiFont, setDisplayFps, setDisplayStatView, setShowSettings, setSpeed, simpleRender, simpleUpdate, 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
protected Geometry makeCube(java.lang.String name, float x, float y, float z)
protected Geometry makeFloor()
protected void initMark()
protected void initCrossHairs()
protected Spatial makeCharacter()