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