Package com.io7m.jcamera.examples.jogl
Class ExampleSphericalSimulation
java.lang.Object
com.io7m.jcamera.examples.jogl.ExampleSphericalSimulation
- All Implemented Interfaces:
ExampleSphericalSimulationType
public final class ExampleSphericalSimulation
extends Object
implements ExampleSphericalSimulationType
The example physical simulation containing just the fps-style camera, updated
at a fixed time step.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcameraSetEnabled(boolean b) Enable/disable the camera.doublegetInput()$example: Integrate the camera.
-
Constructor Details
-
ExampleSphericalSimulation
public ExampleSphericalSimulation()$example: Construct a new simulation.
-
-
Method Details
-
integrate
$example: Integrate the camera.- Specified by:
integratein interfaceExampleSphericalSimulationType- Returns:
- A new camera snapshot.
-
cameraIsEnabled
public boolean cameraIsEnabled()- Specified by:
cameraIsEnabledin interfaceExampleSphericalSimulationType- Returns:
trueif the camera is enabled.
-
cameraSetEnabled
public void cameraSetEnabled(boolean b) Description copied from interface:ExampleSphericalSimulationTypeEnable/disable the camera.- Specified by:
cameraSetEnabledin interfaceExampleSphericalSimulationType- Parameters:
b-trueif the camera should be enabled.
-
getCamera
- Specified by:
getCamerain interfaceExampleSphericalSimulationType- Returns:
- The camera
-
getDeltaTime
public double getDeltaTime()- Specified by:
getDeltaTimein interfaceExampleSphericalSimulationType- Returns:
- The simulation delta time
-
getInput
- Specified by:
getInputin interfaceExampleSphericalSimulationType- Returns:
- The camera input
-