src/core/SpawningManager.js
/**
	* Respawns the given competitor.
	*
	* @param {GameEntity} competitor - The entity to respawn.
	* @return {SpawningManager} A reference to this spawning manager.
	*/
Respawns the given competitor.
@param {GameEntity} competitor - The entity to respawn.
@return {SpawningManager} A reference to this spawning manager.
Respawns the given competitor . @param { GameEntity } competitor - The entity to respawn . @return { SpawningManager } A reference to this spawning manager .
respawnCompetitor( competitor ) {
		const spawnPoint = this.getSpawnPoint( competitor );
		competitor.position.copy( spawnPoint.position );
		competitor.rotation.fromEuler( spawnPoint.rotation.x, spawnPoint.rotation.y, spawnPoint.rotation.z );
		if ( competitor.isPlayer ) competitor.head.rotation.set( 0, 0, 0, 1 );
		return this;
	}
respawnCompetitor ( competitor ) { const spawnPoint = this . getSpawnPoint ( competitor ) ; competitor . position . copy ( spawnPoint . position ) ; competitor . rotation . fromEuler ( spawnPoint . rotation . x , spawnPoint . rotation . y , spawnPoint . rotation . z ) ; if ( competitor . isPlayer ) competitor . head . rotation . set ( 0 , 0 , 0 , 1 ) ; return this ; }
Respawns the given competitor.
Respawns the given competitor .