Skip to content

Latest commit

 

History

History
89 lines (42 loc) · 1.29 KB

File metadata and controls

89 lines (42 loc) · 1.29 KB

Home > server > SimpleEntityController > face

SimpleEntityController.face() method

Rotates the entity at a given speed to face a target coordinate.

Signature:

face(target: Vector3Like, speed: number, options?: FaceOptions): void;

Parameters

Parameter

Type

Description

target

Vector3Like

The target coordinate to face.

speed

number

The speed at which to rotate to the target coordinate.

options

FaceOptions

(Optional) Additional options for the face operation, such as callbacks.

**Returns:**

void

Remarks

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.