src/core/World.js
/**
	* Removes the given game entity from the game world. This means it is
	* removed from the entity manager and from the scene if it has a render component.
	*
	* @param {GameEntity} entity - The game entity to remove.
	* @return {World} A reference to this world object.
	*/
Removes the given game entity from the game world. This means it is
removed from the entity manager and from the scene if it has a render component.

@param {GameEntity} entity - The game entity to remove.
@return {World} A reference to this world object.
Removes the given game entity from the game world . This means it is removed from the entity manager and from the scene if it has a render component . @param { GameEntity } entity - The game entity to remove . @return { World } A reference to this world object .
remove( entity ) {
		this.entityManager.remove( entity );
		if ( entity._renderComponent !== null ) {
			this.scene.remove( entity._renderComponent );
		}
		return this;
	}
remove ( entity ) { this . entityManager . remove ( entity ) ; if ( entity . _renderComponent !== null ) { this . scene . remove ( entity . _renderComponent ) ; } return this ; }
Removes the given game entity from the game world.
Removes the given game entity from the game world .