public class TestBoneRagdoll extends SimpleApplication implements ActionListener, RagdollCollisionListener
flyCam, fpsText, guiFont, guiNode, INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_EXIT, INPUT_MAPPING_HIDE_STATS, INPUT_MAPPING_MEMORY, rootNode, showSettingsassetManager, audioRenderer, cam, context, guiViewPort, inputEnabled, inputManager, joyInput, keyInput, listener, lostFocusBehavior, mouseInput, paused, prof, renderer, renderManager, settings, speed, stateManager, timer, touchInput, viewPort| Constructor and Description |
|---|
TestBoneRagdoll() |
| Modifier and Type | Method and Description |
|---|---|
void |
collide(PhysicsLink bone,
PhysicsCollisionObject object,
PhysicsCollisionEvent event)
Invoked when a collision involving a linked rigid body occurs.
|
static void |
main(java.lang.String[] args) |
void |
onAction(java.lang.String name,
boolean isPressed,
float tpf)
Called when an input to which this listener is registered to is invoked.
|
void |
onStandDone() |
void |
simpleInitApp() |
getFlyByCamera, getGuiNode, getRootNode, getSpeed, initialize, isShowSettings, loadGuiFont, setDisplayFps, setDisplayStatView, setShowSettings, setSpeed, simpleRender, simpleUpdate, start, updatecreateCanvas, 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, stoppublic static void main(java.lang.String[] args)
public void onStandDone()
public void onAction(java.lang.String name,
boolean isPressed,
float tpf)
ActionListeneronAction in interface ActionListenername - The name of the mapping that was invokedisPressed - True if the action is "pressed", false otherwisetpf - The time per frame value.public void simpleInitApp()
simpleInitApp in class SimpleApplicationpublic void collide(PhysicsLink bone, PhysicsCollisionObject object, PhysicsCollisionEvent event)
RagdollCollisionListenercollide in interface RagdollCollisionListenerbone - the physics link that collided (not null)object - the collision object that collided with the bone (not null)event - other event details (not null)