src/entities/Enemy.js
/**
	* Returns true if the enemy is at the given target position. The result of the test
	* can be influenced with a configurable tolerance value.
	*
	* @param {Vector3} position - The target position.
	* @return {Boolean} Whether the enemy is at the given target position or not.
	*/
Returns true if the enemy is at the given target position. The result of the test
can be influenced with a configurable tolerance value.

@param {Vector3} position - The target position.
@return {Boolean} Whether the enemy is at the given target position or not.
Returns true if the enemy is at the given target position . The result of the test can be influenced with a configurable tolerance value . @param { Vector3 } position - The target position . @return { Boolean } Whether the enemy is at the given target position or not .
atPosition( position ) {
		const tolerance = CONFIG.BOT.NAVIGATION.ARRIVE_TOLERANCE * CONFIG.BOT.NAVIGATION.ARRIVE_TOLERANCE;
		const distance = this.position.squaredDistanceTo( position );
		return distance <= tolerance;
	}
atPosition ( position ) { const tolerance = CONFIG . BOT . NAVIGATION . ARRIVE_TOLERANCE * CONFIG . BOT . NAVIGATION . ARRIVE_TOLERANCE ; const distance = this . position . squaredDistanceTo ( position ) ; return distance <= tolerance ; }
Returns true if the enemy is at the given target position.
Returns true if the enemy is at the given target position .