public interface JCameraFPSStyleType extends JCameraType, JCameraFPSStyleReadableType
The type of first-person shooter style flying cameras that allow for:
| Modifier and Type | Method and Description |
|---|---|
void |
cameraClampHorizontalDisable()
Do not clamp rotations around the horizontal axis.
|
void |
cameraClampHorizontalEnable(float min,
float max)
Clamp the possible rotations around the horizontal axis to the given
bounds.
|
void |
cameraMoveForward(float u)
Move the camera forward
u units iff u
is positive, or backward u units iff u is
negative. |
void |
cameraMoveRight(float u)
Move the camera right
u units iff u is
positive, or left u units iff u is
negative. |
void |
cameraMoveUp(float u)
Move the camera up
u units iff u is
positive, or down u units iff u is
negative. |
boolean |
cameraRotateAroundHorizontal(float r)
Rotate by
r radians around the local X axis. |
void |
cameraRotateAroundVertical(float r)
Rotate by
r radians around the global Y axis. |
void |
cameraSetAngleAroundHorizontal(float h)
Set the angle around the horizontal axis to
h. |
void |
cameraSetAngleAroundVertical(float v)
Set the angle around the vertical axis to
v. |
void |
cameraSetPosition(com.io7m.jtensors.VectorReadable3FType v)
Set the position of the camera.
|
void |
cameraSetPosition3f(float x,
float y,
float z)
Set the position of the camera.
|
cameraGetAngleAroundHorizontal, cameraGetAngleAroundVertical, cameraGetForward, cameraGetPosition, cameraGetRight, cameraGetUp, cameraMakeSnapshotcameraMakeViewMatrix, cameraMakeViewPMatrixvoid cameraClampHorizontalDisable()
void cameraClampHorizontalEnable(float min,
float max)
min - The minimum anglemax - The maximum anglevoid cameraMoveForward(float u)
Move the camera forward u units iff u
is positive, or backward u units iff u is
negative.
The forward direction, in this case, means the current view direction.
u - The units to movevoid cameraMoveRight(float u)
Move the camera right u units iff u is
positive, or left u units iff u is
negative.
The right direction, in this case, means the
direction perpendicular to the current view direction, -π / 2
radians around the global Y axis.
u - The units to movevoid cameraMoveUp(float u)
Move the camera up u units iff u is
positive, or down u units iff u is
negative.
The up direction, in this case, means the direction towards positive infinity on the global Y axis.
u - The units to moveboolean cameraRotateAroundHorizontal(float r)
Rotate by r radians around the local X axis.
Note that by convention, when looking towards negative infinity on an axis, a positive rotation value results in a counter-clockwise rotation on the axis.
A human analogy would be that a positive value passed to this function causes the camera to look up towards the sky. A negative value causes the camera to look down towards the ground.
r - The radians to rotatetrue if the rotation has been clampedcameraClampHorizontalEnable(float, float)void cameraRotateAroundVertical(float r)
Rotate by r radians around the global Y axis.
Note that by convention, when looking towards negative infinity on an axis, a positive rotation value results in a counter-clockwise rotation on the axis.
A human analogy would be that a positive value passed to this function causes the camera to turn left, while a negative value causes the camera to look right.
r - The radians to rotatevoid cameraSetAngleAroundHorizontal(float h)
h.h - The angle.void cameraSetAngleAroundVertical(float v)
v.v - The angle.void cameraSetPosition(com.io7m.jtensors.VectorReadable3FType v)
v - The position.void cameraSetPosition3f(float x,
float y,
float z)
x - The x coordinate.y - The y coordinate.z - The z coordinate.Copyright © 2016 <code@io7m.com> http://io7m.com