Elitist Jerks (http://elitistjerks.com/forums.php)
-   Theorycrafting Think Tank (http://elitistjerks.com/f47/)
-   -   Range Calculation (http://elitistjerks.com/f47/t16164-range_calculation/)

 Nite_Moogle 09/21/07 12:02 PM

Range Calculation

1 Attachment(s)
This article discusses the way that range is calcuated for various spells and abilities.

## [top]Terminology

• Bounding Box/Bounding Cylinder: The invisible 3-dimensional space that a model occupies. This can be thought of as a large cylinder (like an engine piston) that is centered on your character.
• Model Center: The middle-most point around which your character model is centered.

## [top]Point-to-Point

An ability that has a direct point-to-point effect (including most all single-target spells and physical damage attacks) determines whether or not the target is in range using a edge-to-edge boundary check between the two bounding boxes. Essentially, the radius size of the bounding sphere that the player or NPC occupies is expanded by the range of the attack, and the game engine checks to see if this sphere collides with the intended target. If a collision occurs, the attack is in range.