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

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