Home > server > BaseEntityController > tickWithPlayerInput
Override this method to handle entity movements based on player input for your entity controller. This is called every tick by a PlayerEntity with a entity controller.
Signature:
tickWithPlayerInput(entity: PlayerEntity, input: PlayerInput, cameraOrientation: PlayerCameraOrientation, deltaTimeMs: number): void;|
Parameter |
Type |
Description |
|---|---|---|
|
entity |
The entity to tick. | |
|
input |
The current input state of the player. | |
|
cameraOrientation |
The current camera orientation state of the player. | |
|
deltaTimeMs |
number |
The delta time in milliseconds since the last tick. |
void