| Name | Type | Description |
|---|---|---|
command |
Object | Direct JSON command to parse |
Properties:
| Name | Type | Description |
|---|---|---|
targetID |
SystemValue | The ID of the camera target |
operation |
OperationKind | The operation used for the transformations |
moveTargetOffset |
bool | Indicate if move target offset |
cameraOrientation |
bool | Indicate if camera orientation |
x |
SystemValue | The x value |
xSquare |
bool | Indicate if x value is square |
y |
SystemValue | The y value |
ySquare |
bool | Indicate if y value is square |
z |
SystemValue | The z value |
zSquare |
bool | Indicate if z value is square |
rotationTargetOffset |
bool | Indicate if rotation target offset |
h |
SystemValue | The horizontal angle value |
v |
SystemValue | The vertical angle value |
distance |
SystemValue | The distance value |
isWaitEnd |
boolean | Indicate if wait end of the command |
time |
SystemValue | The time to wait value |
Extends
Methods
-
initialize ()Object overrides
-
Initialize the current state
Returns:
Type Description Object The current state -
update (currentState, object, state)number overrides
-
Update and check if the event is finished
Name Type Description currentStateObject The current state of the event objectMapObject The current object reacting statenumber The state ID Returns:
Type Description number The number of node to pass -
First key press handle for the current stack
Name Type Description currentStateObject The current state of the event keynumber The key ID pressed -
First key release handle for the current stack
Name Type Description currentStateObject The current state of the event keynumber The key ID pressed -
Key pressed repeat handle for the current stack
Name Type Description currentStateObject The current state of the event keynumber The key ID pressed Returns:
Type Description boolean -
Key pressed repeat handle for the current stack, but with a small wait after the first pressure (generally used for menus)
Name Type Description currentStateObject The current state of the event keynumber The key ID pressed -
Draw the HUD
Name Type Description currentStateObject The current state of the event