Package com.io7m.jcamera.examples.jogl
Class ExampleFPSStyleSimulation
java.lang.Object
com.io7m.jcamera.examples.jogl.ExampleFPSStyleSimulation
- All Implemented Interfaces:
ExampleFPSStyleSimulationType
public final class ExampleFPSStyleSimulation
extends Object
implements ExampleFPSStyleSimulationType
The example physical simulation containing just the fps-style camera, updated
at a fixed time step.
-
Constructor Summary
ConstructorsConstructorDescriptionExampleFPSStyleSimulation(ExampleRendererControllerType in_renderer) $example: Construct a new simulation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcameraSetEnabled(boolean b) Enable/disable the camera.floatgetInput()$example: Integrate the camera.
-
Constructor Details
-
ExampleFPSStyleSimulation
$example: Construct a new simulation.- Parameters:
in_renderer- The interface to the renderer
-
-
Method Details
-
integrate
$example: Integrate the camera.- Specified by:
integratein interfaceExampleFPSStyleSimulationType- Returns:
- A new camera snapshot.
-
cameraIsEnabled
public boolean cameraIsEnabled()- Specified by:
cameraIsEnabledin interfaceExampleFPSStyleSimulationType- Returns:
trueif the camera is enabled.
-
cameraSetEnabled
public void cameraSetEnabled(boolean b) Description copied from interface:ExampleFPSStyleSimulationTypeEnable/disable the camera.- Specified by:
cameraSetEnabledin interfaceExampleFPSStyleSimulationType- Parameters:
b-trueif the camera should be enabled.
-
getDeltaTime
public float getDeltaTime()- Specified by:
getDeltaTimein interfaceExampleFPSStyleSimulationType- Returns:
- The simulation delta time
-
getInput
- Specified by:
getInputin interfaceExampleFPSStyleSimulationType- Returns:
- The camera input
-
getIntegrator
- Specified by:
getIntegratorin interfaceExampleFPSStyleSimulationType- Returns:
- The integrator used for the camera.
-
getCamera
- Specified by:
getCamerain interfaceExampleFPSStyleSimulationType- Returns:
- The camera used for the simulation.
-