メインコンテンツまでスキップ

範囲効果

範囲効果(AoE)とは:

  • 攻撃がどの範囲のターゲットに当たるかを決める性質 (hitbox).
  • ターゲット側がどの範囲を被弾として扱うかを決める性質 (hurtbox).
  • 一部アビリティがどの範囲でターゲットを検出するかを決める性質 (例: Bennett Inspiration Field).

座標系

Evilsim は次の考え方に基づく 2D 座標系を使います: Cartesian coordinate system. つまり、フィールド上の各点は x と y の組み合わせで一意に指定できます。

注意

Evilsim ではメートル (m) を unit of length.

ヒント

一部の螺旋フロアにはタイルがあります。たとえば 7 層と 8 層では、タイルサイズは 2.55m x 2.55m です。

方向

Evilsim はプレイヤーや形状の向きを vectors. 形状は中心点を基準に、その方向へ向けて配置されます。

備考

通常、形状の向きはプレイヤーの向きに基づきます。 プレイヤーの向きは、最も近い敵(主ターゲット)の方向に自動設定されます。 そのため、次のイベントで向きが更新されます:

  • プレイヤーが移動した
  • 敵が移動した
  • 主ターゲットが倒れた

各 (x, y) ベクトルは特定の角度に対応します。

備考

方向と対応角度の例:

方向角度説明
(0, 1)"前を向く", 既定方向
(1, 0)90°"右を向く"
(0, -1)180°"後ろを向く"
(-1, 0)270°"左を向く"

備考

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

方向で回転する前:

方向で回転した後:

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

ヒットボックス、当たり判定、検出範囲

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

備考

プレイヤーは半径 0.3m の円形 hurtbox を持ちます。

備考

ターゲットは既定で半径 1m の円形 hurtbox を持ちます。 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.

形状

Evilsim で使われる形状の一覧です:

形状説明属性
単体対象This means the attack is hitting a single enemy directly.Enemy Key
円形A circle with a certain radius. If the circle has a fan angle, then it becomes a circular segment.中心, X オフセット, Y オフセット, 半径, 扇形角度
箱型A 2D box (rectangle) with a certain width and length.中心, X オフセット, Y オフセット, 箱 X (width), 箱 Y (length)
注意

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 形状2D 表現
円形 with same radius.
円柱円形 with same radius.
箱型長方形 with same width and length.

中心

単体対象 以外の形状には中心点があります。

備考

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

注意

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 箱 X parameter.

Offset

各形状の中心点は、x 方向に一定量ずらせます (X オフセット) and/or y direction (Y オフセット). The values for X オフセット and Y オフセット assume a direction of (0, 1) (0°), so they get rotated to match the shape's direction.

備考

Most attacks do not have X オフセット, but they usually have Y オフセット.

Fan angle

円の扇形角度は 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.

衝突

Evilsim は collision detection between the attack's hitbox and target's hurtbox. 衝突が検出されると、その攻撃はターゲットに命中します。 For more details, please refer to the Evilsim/Evilsim のソースコード.

範囲データの確認先