Extends
- ScriptBase
Members
map :AbstractMap|null
- AbstractMap |
null
- Source
objectsMoving :Object.<string, Array>
state of the objects moving
- Object.<string, Array>
- Source
(static) DEFAULT_VARIABLES
- Source
(static) ID_SCRIPT
Gets the script ID.
- Source
Methods
checkMaxAltitude(object3D) → {boolean}
Checks if the given object's altitude is below the maximum allowed altitude.
Name | Type | Description |
---|---|---|
object3D | Object3D | The object to check. |
- Source
- True if the object's altitude is below the maximum allowed altitude, false otherwise.
- Type:
- boolean
checkMinAltitude(object3D) → {boolean}
Checks if the given object's altitude is above the minimum allowed altitude.
Name | Type | Description |
---|---|---|
object3D | Object3D | The object to check. |
- Source
- True if the object's altitude is above the minimum allowed altitude, false otherwise.
- Type:
- boolean
clampRotation(object3D)
Name | Type | Description |
---|---|---|
object3D | Object3D | object3d to clamp rotation |
- Source
computeMaxAltitude() → {number}
Computes the maximum allowed altitude. If you want to have different max altitude for gameobject you should override this method
- Source
- The maximum allowed altitude.
- Type:
- number
computeMinAltitude() → {number}
Computes the minimum allowed altitude. If you want to have different min altitude for gameobject you should override this method
- Source
- The minimum allowed altitude.
- Type:
- number
computeObjectSpeedRotate() → {number}
If you want to have different rotation speed for gameobject you should override this method
- Source
speed of the rotation
- Type:
- number
computeObjectSpeedTranslate() → {number}
If you want to have different translation speed for gameobject you should override this method
- Source
speed of the translation
- Type:
- number
freeze(object3D, value)
An object3D freezed cant be move by manager
Name | Type | Description |
---|---|---|
object3D | Object3D | object3D to freeze or not |
value | boolean | freeze or not an object3D |
- Source
stop(object3D)
End Movement of an object3D
Name | Type | Description |
---|---|---|
object3D | Object3D | object3D to stop |
- Source
tick()
Handles the tick event.
- Source
(static) move(object3D, vector, map, withMap) → {boolean}
Move object3D on a map
Name | Type | Description |
---|---|---|
object3D | Object3D | object3D to move |
vector | Vector3 | move vector |
map | AbstractMap | map script |
withMap | boolean | map should be consider |
- Source
isOutOfMap - the movement make the object3D leaves the map
- Type:
- boolean
(static) moveBackward(object3D, value, map, withMapopt) → {boolean}
Move backward object3D of a certain value
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
object3D | Object3D | object3D to move backward | ||
value | number | amount to move backward | ||
map | AbstractMap | map script | ||
withMap | boolean | <optional> | true | map should be consider |
- Source
- the movement make the object3D leaves the map
- Type:
- boolean
(static) moveDown(object3D, value, map, withMapopt) → {boolean}
Move up object3D of a certain value
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
object3D | Object3D | object3D to move up | ||
value | number | amount to move up | ||
map | AbstractMap | map script | ||
withMap | boolean | <optional> | true | map should be consider |
- Source
- the movement make the object3D leaves the map
- Type:
- boolean
(static) moveForward(object3D, value, map, withMapopt) → {boolean}
Move forward object3D of a certain value
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
object3D | Object3D | object3D to move forward | ||
value | number | amount to move forward | ||
map | AbstractMap | map script | ||
withMap | boolean | <optional> | true | map should be consider |
- Source
- the movement make the object3D leaves the map
- Type:
- boolean
(static) moveLeft(object3D, value, map, withMapopt) → {boolean}
Move letf object3D of a certain value
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
object3D | Object3D | object3D to move left | ||
value | number | amount to move left | ||
map | AbstractMap | map script | ||
withMap | boolean | <optional> | true | map should be consider |
- Source
- the movement make the object3D leaves the map
- Type:
- boolean
(static) moveRight(object3D, value, map, withMapopt) → {boolean}
Move right object3D of a certain value
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
object3D | Object3D | object3D to move right | ||
value | number | amount to move right | ||
map | AbstractMap | map script | ||
withMap | boolean | <optional> | true | map should be consider |
- Source
- the movement make the object3D leaves the map
- Type:
- boolean
(static) moveUp(object3D, value, map, withMapopt) → {boolean}
Move up object3D of a certain value
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
object3D | Object3D | object3D to move up | ||
value | number | amount to move up | ||
map | AbstractMap | map script | ||
withMap | boolean | <optional> | true | map should be consider |
- Source
- the movement make the object3D leaves the map
- Type:
- boolean
(static) rotate(object3D, euler)
Rotate an object3D with an euler
Name | Type | Description |
---|---|---|
object3D | Object3D | object3D to rotate |
euler | Euler | euler to rotate from |
- Source