com.jmex.physics.util
Class SimplePhysicsGame
java.lang.Object
com.jme.app.AbstractGame
com.jme.app.BaseGame
com.jme.app.BaseSimpleGame
com.jmex.physics.util.SimplePhysicsGame
public abstract class SimplePhysicsGame
- extends com.jme.app.BaseSimpleGame
SimplePhysicsGame provides the simplest possible implementation of a
main game loop including physics. It's the equivalent to BaseSimpleGame, only with a PhysicsSpace
added.
- Version:
- $Id: SimplePhysicsGame.java,v 1.18 2007/09/22 14:28:39 irrisor Exp $
- Author:
- Irrisor
- See Also:
BaseSimpleGame
| Nested classes/interfaces inherited from class com.jme.app.AbstractGame |
com.jme.app.AbstractGame.ConfigShowMode |
| Fields inherited from class com.jme.app.BaseSimpleGame |
alphaBits, cam, depthBits, graphNode, input, lightState, pause, rootNode, samples, showBounds, showDepth, showGraphs, showNormals, statNode, stencilBits, timer, tpf, wireState |
| Fields inherited from class com.jme.app.BaseGame |
throwableHandler |
| Fields inherited from class com.jme.app.AbstractGame |
display, finished, settings |
| Methods inherited from class com.jme.app.BaseSimpleGame |
cameraParallel, cameraPerspective, cleanup, initGame, quit, reinit, setupStatGraphs, setupStats, simpleInitGame, simpleRender, simpleUpdate |
| Methods inherited from class com.jme.app.BaseGame |
getNewSettings, getThrowableHandler, setThrowableHandler, start |
| Methods inherited from class com.jme.app.AbstractGame |
assertDisplayCreated, finish, getAttributes, getVersion, setConfigShowMode, setConfigShowMode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cameraInputHandler
protected com.jme.input.InputHandler cameraInputHandler
showPhysics
protected boolean showPhysics
SimplePhysicsGame
public SimplePhysicsGame()
getPhysicsSpeed
public float getPhysicsSpeed()
- Returns:
- speed set by
setPhysicsSpeed(float)
setPhysicsSpeed
public void setPhysicsSpeed(float physicsSpeed)
- The multiplier for the physics time. Default is 1, which means normal speed. 0 means no physics processing.
- Parameters:
physicsSpeed - new speed
initSystem
protected void initSystem()
- Overrides:
initSystem in class com.jme.app.BaseSimpleGame
getPhysicsSpace
public PhysicsSpace getPhysicsSpace()
- Returns:
- the physics space for this simple game
setPhysicsSpace
protected void setPhysicsSpace(PhysicsSpace physicsSpace)
- Parameters:
physicsSpace - The physics space for this simple game
update
protected final void update(float interpolation)
- Called every frame to update scene information.
- Overrides:
update in class com.jme.app.BaseSimpleGame
- Parameters:
interpolation - unused in this implementation- See Also:
BaseSimpleGame.update(float interpolation)
updateInput
protected void updateInput()
- Overrides:
updateInput in class com.jme.app.BaseSimpleGame
render
protected final void render(float interpolation)
- This is called every frame in BaseGame.start(), after update()
- Overrides:
render in class com.jme.app.BaseSimpleGame
- Parameters:
interpolation - unused in this implementation- See Also:
AbstractGame.render(float interpolation)
preRender
protected void preRender()
doDebug
protected void doDebug(com.jme.renderer.Renderer r)
- Overrides:
doDebug in class com.jme.app.BaseSimpleGame