|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.input.FlyByCamera
public class FlyByCamera
A first person view camera controller. After creation, you must register the camera controller with the dispatcher using #registerWithDispatcher(). Controls: - Move the mouse to rotate the camera - Mouse wheel for zooming in or out - WASD keys for moving forward/backward and strafing - QZ keys raise or lower the camera
| コンストラクタの概要 | |
|---|---|
FlyByCamera(Camera cam)
Creates a new FlyByCamera to control the given Camera object. |
|
| メソッドの概要 | |
|---|---|
boolean |
isDragToRotate()
|
boolean |
isEnabled()
|
void |
onAction(java.lang.String name,
boolean value,
float tpf)
Called when an input to which this listener is registered to is invoked. |
void |
onAnalog(java.lang.String name,
float value,
float tpf)
Called to notify the implementation that an analog event has occurred. |
void |
registerWithInput(InputManager inputManager)
Registers the FlyByCamera to receive input events from the provided Dispatcher. |
void |
setDragToRotate(boolean dragToRotate)
Set if drag to rotate mode is enabled. |
void |
setEnabled(boolean enable)
|
void |
setMotionAllowedListener(MotionAllowedListener listener)
|
void |
setMoveSpeed(float moveSpeed)
Sets the move speed. |
void |
setRotationSpeed(float rotationSpeed)
Sets the rotation speed. |
void |
setUpVector(Vector3f upVec)
Sets the up vector that should be used for the camera. |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public FlyByCamera(Camera cam)
cam - | メソッドの詳細 |
|---|
public void setUpVector(Vector3f upVec)
upVec - public void setMotionAllowedListener(MotionAllowedListener listener)
public void setMoveSpeed(float moveSpeed)
moveSpeed - public void setRotationSpeed(float rotationSpeed)
rotationSpeed - public void setEnabled(boolean enable)
enable - If false, the camera will ignore input.public boolean isEnabled()
setEnabled(boolean)public boolean isDragToRotate()
setDragToRotate(boolean)public void setDragToRotate(boolean dragToRotate)
dragToRotate - True if drag to rotate mode is enabled.public void registerWithInput(InputManager inputManager)
dispacher -
public void onAnalog(java.lang.String name,
float value,
float tpf)
AnalogListener の記述:
AnalogListener 内の onAnalogname - The name of the mapping that was invokedvalue - Value of the axis, from 0 to 1.tpf - The time per frame value.
public void onAction(java.lang.String name,
boolean value,
float tpf)
ActionListener の記述:
ActionListener 内の onActionname - The name of the mapping that was invokedvalue - True if the action is "pressed", false otherwisetpf - The time per frame value.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||