Skip to main content

SpawnPointElement

SpawnPointElement represents a spawn point within the environment or scene. It defines specific locations where players will be instantiated or respawned. Spawn points are essential for gameplay flow, scene logic, and procedural content placement. They can serve as entry points, checkpoints, teleport destinations, or designated areas for spawning AI agents and items.

Common use cases include:

  • Defining player entry points in a level
  • Assigning spawn areas for procedural content
  • Tagging specific locations for scene logic (e.g., teleport destinations, checkpoints)

Example:

const spawnPoint = new SpawnPointElement();
scene.add(spawnPoint);