src/core/World.js
/**
	* Adds a bullet to the game world. The bullet is defined by the given
	* parameters and created by the method.
	*
	* @param {GameEntity} owner - The owner of the bullet.
	* @param {Ray} ray - The ray that defines the trajectory of this bullet.
	* @return {World} A reference to this world object.
	*/
Adds a bullet to the game world. The bullet is defined by the given
parameters and created by the method.

@param {GameEntity} owner - The owner of the bullet.
@param {Ray} ray - The ray that defines the trajectory of this bullet.
@return {World} A reference to this world object.
Adds a bullet to the game world . The bullet is defined by the given parameters and created by the method . @param { GameEntity } owner - The owner of the bullet . @param { Ray } ray - The ray that defines the trajectory of this bullet . @return { World } A reference to this world object .
addBullet( owner, ray ) {
		const bulletLine = this.assetManager.models.get( 'bulletLine' ).clone();
		bulletLine.visible = false;
		const bullet = new Bullet( owner, ray );
		bullet.setRenderComponent( bulletLine, sync );
		this.add( bullet );
		return this;
	}
addBullet ( owner , ray ) { const bulletLine = this . assetManager . models . get ( 'bulletLine' ) . clone ( ) ; bulletLine . visible = false ; const bullet = new Bullet ( owner , ray ) ; bullet . setRenderComponent ( bulletLine , sync ) ; this . add ( bullet ) ; return this ; }
Adds a bullet to the game world.
Adds a bullet to the game world .