Zum Hauptinhalt springen

Flächeneffekt

Flächeneffekt (AoE) is:

  • a property of attacks that determines in what area it can hit targets (hitbox).
  • a property of targets that determines in what area it counts attacks as hitting it (hurtbox).
  • a property of abilities that determines in what area it detects targets (Beispiel: Bennett Inspiration Field).

Koordinatensystem

Evilsim is using a 2D coordinate system that follows the Cartesian coordinate system. That means every point in space can be uniquely identified by a combination of its x and y coordinate values.

caution

Evilsim uses meters (m) as its unit of length.

tip

Some abyss floors have tiles. Zum Beispiel: Floor 7 and 8. These tiles have a size of 2.55m x 2.55m.

Richtung

Evilsim represents the (viewing) direction of the player and shapes by using vectors. Formas are oriented according to the direction starting from their center.

info

Usually, the direction of a shape is based on the direction of the player. The player direction is always set to the direction of the closest enemy (primary target). In order to achieve this, it updates on the following events:

  • player is moved
  • enemy is moved
  • primary target dies

Each (x, y) vector can be mapped to a certain angle.

info

Beispiel directions and their mappings:

RichtungAngleBeschreibung
(0, 1)"looking forward", Standard direction
(1, 0)90°"looking to the right"
(0, -1)180°"looking backward"
(-1, 0)270°"looking to the left"

info

Beispiel for a 3m x 5m rectangle with the center at (0, 0) and a direction of (1, 1) (45°):

Before rotation by direction:

After rotation by direction:

For some manual rotation calculations for shapes that have their center at (0, 0), you can use this website.

Hitbox, hurtbox and detection area

The AoE of an attack (hitbox) and AoE of a target (hurtbox) is represented by their shape in combination with a direction.

info

The player has a Kreis hurtbox with 0.3m radius.

info

Ziels have a Kreis hurtbox with 1m radius by Standard. See the config page in the reference section for information on how to customize the radius.

In the case of a detection area, only the center point of the hurtbox matters and it has to be in that detection area.

Form

Here is a list of shapes that is used in Evilsim:

FormBeschreibungAttributes
SingleZielThis means the attack is hitting a single enemy directly.Enemy Key
KreisA circle with a certain radius. If the circle has a fan angle, then it becomes a circular segment.Zentrum, Versatz X, Versatz Y, Radius, Fächerwinkel
BoxA 2D box (rectangle) with a certain width and length.Zentrum, Versatz X, Versatz Y, Box X (width), Box Y (length)
caution

Evilsim is implemented entirely in 2D, but Genshin is a 3D game. This means we have the following mappings between 3D and 2D shapes:

3D shape2D representation
SphereKreis with same radius.
CylinderKreis with same radius.
BoxRectangle with same width and length.

Zentrum

Every shape except for SingleZiel has a point that defines its center.

info

Usually, it is the position of the player or an enemy.

caution

While circles and circular segments in Evilsim have the usual center definition, rectangles have their center not in their geometric center, but in the middle of the lower side defined by the Box X parameter.

Offset

The center point of every shape can be shifted by a certain amount in the x direction (Versatz X) and/or y direction (Versatz Y). The values for Versatz X and Versatz Y assume a direction of (0, 1) (0°), so they get rotated to match the shape's direction.

info

Most attacks do not have Versatz X, but they usually have Versatz Y.

Fan angle

The fan angle of a circle describes a circular segment. It is a value between 0° (single line) and 360° (full circle). As the value increases, the Circular segment expands 1:1 counterclockwise and clockwise beginning from the circle's direction.

Kollision

Evilsim performs collision detection between the attack's hitbox and target's hurtbox. If Evilsim detected a collision, then the attack hits the target. For more details, please refer to the Evilsim-Quellcode.

Where to find AoE data