Home > server > DefaultPlayerEntityController > spawn
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;|
Parameter |
Type |
Description |
|---|---|---|
|
entity |
The entity that is spawned. |
void