Files
2nd/10_Wiki/Topic_Programming/AI_and_ML/Splash Damage.md
T
Antigravity Agent 9148c358d0 docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를
Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류.

- 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로
  자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거,
  동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거.
- 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming,
  Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business,
  Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로,
  나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는
  title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백).
  원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지.
- 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서.
- 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는
  지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지.
- Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경.
- 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
2026-07-05 00:33:48 +09:00

5.1 KiB

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-splash-damage Splash Damage 10_Wiki/Topics verified self
aoe-damage
area-of-effect
blast-radius
none A 0.9 applied
game-design
combat
balance
aoe
2026-05-10 pending
language framework
csharp unity

Splash Damage

매 한 줄

"매 single hit, multiple targets — 매 spatial damage distribution". Splash damage (AoE damage) 는 매 impact point 주변 radius 의 모든 entity 에 damage 의 분배 — 매 RTS/MOBA/shooter 의 mechanic. 매 falloff curve, friendly fire, line-of-sight 의 design knob.

매 핵심

매 정의

  • Splash damage: 매 projectile/explosion 의 impact point 주변 area 에 damage 분배.
  • Direct damage: 매 center hit 의 full damage.
  • Falloff: 매 distance 증가 → damage 감소 (linear / quadratic / step).
  • Friendly fire: 매 같은 team 도 damage 의 적용 여부.

매 Balance Knob

  • Radius: 매 damage area 의 크기. 매 클수록 anti-clump 강함.
  • Falloff curve: 매 linear (predictable) vs quadratic (focused) vs flat (binary).
  • Damage cap: 매 단일 target 에 대한 multi-source stacking 제한.
  • Cast time / projectile speed: 매 dodge window — 매 빠를수록 strong.
  • Cooldown / mana cost: 매 spam 방지.

매 응용

  1. RTS — 매 siege tank, mortar (StarCraft 의 anti-clump unit).
  2. MOBA — 매 Brand, Annie ult (League of Legends 의 teamfight tool).
  3. Shooter — 매 rocket launcher, grenade (Quake/Overwatch).
  4. Tower Defense — 매 splash tower 의 wave 처리.

💻 패턴

Linear Falloff Splash (Unity C#)

public class SplashDamage : MonoBehaviour {
    public float radius = 5f;
    public float maxDamage = 100f;
    public LayerMask targetMask;

    public void Explode(Vector3 center) {
        Collider[] hits = Physics.OverlapSphere(center, radius, targetMask);
        foreach (var hit in hits) {
            float dist = Vector3.Distance(center, hit.transform.position);
            float falloff = Mathf.Clamp01(1f - dist / radius);
            float dmg = maxDamage * falloff;
            hit.GetComponent<Health>()?.TakeDamage(dmg);
        }
    }
}

Quadratic Falloff (focused)

float falloff = Mathf.Clamp01(1f - Mathf.Pow(dist / radius, 2f));

Line-of-Sight Check (배경 차단)

foreach (var hit in hits) {
    Vector3 dir = (hit.transform.position - center).normalized;
    float dist = Vector3.Distance(center, hit.transform.position);
    if (Physics.Raycast(center, dir, dist, obstacleMask)) continue; // blocked by wall
    ApplyDamage(hit, ComputeDamage(dist));
}

Friendly Fire Toggle

if (!friendlyFire && hit.GetComponent<Team>().id == casterTeamId) continue;

Damage Cap (multi-source)

public class DamageCap : MonoBehaviour {
    Dictionary<int, float> frameDamage = new();
    public float capPerFrame = 200f;

    public float TryApply(float requested) {
        int frame = Time.frameCount;
        float current = frameDamage.GetValueOrDefault(frame, 0f);
        float allowed = Mathf.Min(requested, capPerFrame - current);
        frameDamage[frame] = current + allowed;
        return allowed;
    }
}

Visual Feedback (impulse + VFX)

foreach (var rb in Physics.OverlapSphere(center, radius)
    .Select(c => c.GetComponent<Rigidbody>()).Where(r => r)) {
    rb.AddExplosionForce(800f, center, radius, 1f, ForceMode.Impulse);
}
Instantiate(explosionVFX, center, Quaternion.identity);

매 결정 기준

상황 Approach
Anti-clump 의도 큰 radius + linear falloff
Skillshot reward 작은 radius + quadratic (center 의 보상)
Crowd control 보조 flat damage + 큰 radius + slow effect
Anti-tank small radius + high direct + low falloff
Friendly fire 의 hardcore enable + visual warning

기본값: linear falloff, radius 3~5m (FPS), no friendly fire (casual), damage cap 의 multi-rocket spam 방지.

🔗 Graph

🤖 LLM 활용

언제: balance prototyping (LLM 에 numbers 제안 요청), tooltip writing, design doc review. 언제 X: live PvP balance 의 final tuning — 매 player data 가 ground truth.

안티패턴

  • Binary radius: damage 가 edge 에서 급락 → 매 unsatisfying. Falloff curve 사용.
  • No visual indicator: player 가 radius 모름. Decal / outline 표시.
  • Friendly fire on by default in casual: rage quit. Opt-in 권장.
  • Stacking exploit: 5 rocket 동시 발사 의 one-shot. Damage cap 적용.
  • Through-wall damage 의 무시: realism 깨짐 except 의도된 경우 (e.g. C4).

🧪 검증 / 중복

  • Verified (Unity Physics docs, Riot Games balance talks, GDC Vault 의 splash design lectures).
  • 신뢰도 A.

🕓 Changelog

날짜 변경
2026-05-08 Phase 1
2026-05-10 Manual cleanup — splash damage mechanics + Unity patterns