Skip to content

Latest commit

 

History

History
53 lines (26 loc) · 880 Bytes

File metadata and controls

53 lines (26 loc) · 880 Bytes

Home > server > DefaultPlayerEntityController > spawn

DefaultPlayerEntityController.spawn() method

Called when the controlled entity is spawned. In DefaultPlayerEntityController, this function is used to create the colliders for the entity for wall and ground detection.

Signature:

spawn(entity: Entity): void;

Parameters

Parameter

Type

Description

entity

Entity

The entity that is spawned.

**Returns:**

void