JSTraceTarget
API for managing objects created on a 3D map by moving them to a set path.
Create a API with Module.createTraceTarget.
let trace = Module.createTraceTarget("ID");
Function
move(front, right, terrain)
Moves the object in the specified direction.
front
number
Forward and backward movement values (in meters).
right
number
Left and right movement values (in meters).
terrain
boolean
Set whether or not to refer to the terrain altitude of an object when moving. true: See real-time terrain elevation values. flase: fix object default altitude value.
moveTarget(options)
Moves the object in the specified direction.
Unlike move(), it passes movement in 6 directions (forward/backward/left/right/up/down) as parameters.
ReleaseObject() → boolean
Unregisters a registered object.
Return
true: Disconnection successful.
false: Disconnection failed.
set(options)
Create a movement path function using object and movement information.
The object supports only JSGhostSymbol and JSPoint.
unionTargetToTerrain()
The object moves by referencing the terrain altitude during movement.
Getter / Setter
getObject(), setObject(object) → JSObject
Changes the currently connected target object.
The object supports only JSGhostSymbol and JSPoint.
Does not operate if the object is null.
Type Definitions
JSTraceTarget.moveParameter
front
number
optional
0.0
Forward movement values (in meters).
back
number
optional
0.0
backward movement values (in meters).
left
number
optional
0.0
leftward movement values (in meters).
right
number
optional
0.0
rightward movement values (in meters).
up
number
optional
0.0
upward movement values (in meters).
down
number
optional
0.0
downward movement values (in meters).
Last updated