Home > server > SimpleEntityController > move
Moves the entity at a given speed in a straight line to a target coordinate.
Signature:
move(target: Vector3Like, speed: number, options?: MoveOptions): void;|
Parameter |
Type |
Description |
|---|---|---|
|
target |
The target coordinate to move to. | |
|
speed |
number |
The speed at which to move to the target coordinate. |
|
options |
(Optional) Additional options for the move operation, such as callbacks. |
void
If this method is called while the entity is already attempting to move to another target, the previous target will be ignored and the entity will start attempting to move to the new target.