본문으로 건너뛰기
cccskills
무료GitHub에 공개

game-dev-combat-animation

Create, repair, and review character combat animations, from sword strikes to bow shots and spells. Use joint measurements, mesh deformation tests, camera captures, and blind comparisons to identify awkward poses and assess changes against written rules.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Build, fix and review character combat animations (melee strikes, bow shots, spell casts, skills, monster attacks, whole move sets) so they read like Diablo IV, Baldur's Gate 3 or Elden Ring and never stretch, lock, wring or break an arm, wrist or hand. A written standard with numbered rules, per-frame tests on the real skinned mesh, keys designed from upper-arm, forearm and blade intents, checks from every camera the player sees, two blind critics plus a blind A/B against the last release, and every critic claim verified against full-resolution frames and live-rig numbers. Use when creating or reworking any attack, skill or move set; when the user says arms, hands, wrists, elbows or weapons look stretched, weird, broken or wrong; when they ask for a standard, rules or tests for animations; or when they ask to score animations or get them to N out of 10.

설치 방법 보기

이럴 때 유용합니다

  • Create melee attacks, bow shots, and spell animations
  • Fix stretched arms and awkward wrist or hand poses
  • Define measurable combat animation rules and tests
  • Compare revised moves with the previous release

포함된 파일(27)

  • SKILL.md7.8 KB
  • references/review.md3.9 KB
  • references/rules.md7.5 KB
  • references/techniques.md5.6 KB
  • references/thornvigil.md7.1 KB
  • references/traps.md5.1 KB
  • scripts/install.sh1.2 KB
  • scripts/tools/ab-pack.py1.1 KB
  • scripts/tools/anchor.mjs2.3 KB
  • scripts/tools/armcheck.mjs7.4 KB
  • scripts/tools/at.mjs1.6 KB
  • scripts/tools/baketime.mjs1.0 KB
  • scripts/tools/drawfit.mjs2.5 KB
  • scripts/tools/encode.swift2.3 KB
  • scripts/tools/face.mjs2.0 KB
  • scripts/tools/host.html103 B
  • scripts/tools/jumps.mjs2.1 KB
  • scripts/tools/keydesign.mjs2.2 KB
  • scripts/tools/knight-measure.mjs5.2 KB
  • scripts/tools/msheet.py1.1 KB
  • scripts/tools/play.js1.8 KB
  • scripts/tools/psheet.py722 B
  • scripts/tools/setup.js2.8 KB
  • scripts/tools/shot.js1.2 KB
  • scripts/tools/vidcompose.py2.3 KB
  • templates/ab-judge-prompt.md1.4 KB
  • templates/critic-prompt.md2.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Game dev: combat animation

Distilled from the Thornvigil knight-and-archer pass (2026-09-30 to 10-01, releases 1.0.71 and 1.0.72). Its outcome:

  • Arms and hands won 5 of 8 blind A/B comparisons against the previous release.
  • The archer's broken anchor and the knight's frozen, straight-armed follow-through were fixed.
  • Seven rounds of fixes came from traps that numbers would have caught earlier. Those traps are listed below.

Read references/thornvigil.md for the project's files, commands and current state, and references/traps.md before changing keys.

The loop

  1. Write the standard before touching keys. Extend docs/combat-animation-standard.md (or the project's equivalent) with the move's own numbered rules:
    • Phases on the game's clock: anticipation, the contact or release on the rule's frame, recovery.
    • Body mechanics, weapon path, camera reads.
    • Mark each rule test (measured) or reviewed (scored from frames).
    • Ground every rule in a real reference: a Tripo Studio motion-capture preset for body mechanics, or coached technique such as the archery shot cycle. Use Tripo presets only; the user has no Mixamo account and declined Quaternius.
  2. Baseline first. Capture both surfaces (the Characters page and in play), keep the frames, and get blind scores before changing anything.
  3. Design keys from anatomy, not from hand positions. For each key pick the upper-arm direction u, the forearm direction f and the blade b, then run keydesign.mjs. It returns the hand target and flags:
    • raise over 100°;
    • flex outside 12–140°;
    • a blade outside 25–115° off the forearm. Hand keys ride the shoulder; blade and elbow keys are world directions. See references/techniques.md.
  4. Measure before looking. Bake, then:
    • armcheck.mjs for joint ranges and the skin's stretch and crush per arm region on the real mesh;
    • at.mjs for the fist and blade at given times;
    • the move's own probe: knight-measure.mjs, anchor.mjs or drawfit.mjs. Fix numbers that break a rule before spending a capture.
  5. Test. Run the arm-ranges test and the move's tests. When you add a test for a bug, temporarily restore the bug and prove the test fails; a test that reads the same wrong convention as the code passes forever.
  6. Capture both cameras and look yourself at full resolution. A pose that reads well from the front can read broken from the game camera, and the reverse. Diff each capture against the previous round to be sure it is new.
  7. Judge. Use two blind critics with a fixed rubric (5 criteria × 0–2; the lower score counts) and a blind A/B against the last release with identical sheet titles. Then verify every claim against full-resolution frames and live-rig numbers before acting on it. See references/review.md and templates/.
  8. Ship by the project's rules: tests, build, changelog with real screenshots, push, sizes, publish. Use the workflow-ship-change skill. If a pushed but unpublished release regresses, correct it in place with a follow-up commit; don't add a version for something players never saw.
  9. Show it. When asked for videos, capture at 30 fps on the move's own clock, place the Characters page and in-play views side by side, and play real speed then quarter speed (vidcompose.py + encode.swift).

The arm and hand rules

The rig has no twist or corrective bones; past these ranges the skin visibly wrings, crushes or stretches. Every frame of every strike stays inside them, on both bodies, measured on the real skinned mesh.

RuleLimit
Elbow flexion10–152°; the striking or drawing arm keeps ≥20° through the middle 80% of the move
Contact reachsword hand ≥60% of arm length from the shoulder at contact (reach into the blow, never lock)
Wristbend ≤50°, roll ≤45°; sword wrist capped at 40°; a drawing hand held straight
Twistforearm roll ≤52°, upper-arm roll ≤52°
Raise≤105° from hanging (shoulder skin crushes beyond); no overhead raises
Skinthe worst 1% of each arm or hand region's edges: stretch ≤2×, crush ≤3× against the bind
Handsalways in a pose: fist on a grip, hook on a string (set → loose → follow-through), relaxed when empty; never splayed or clawed
Pathshands ride their shoulders and arc about them between keys; blade keys stay reachable (25–115° off the forearm)

Full rules, with the reasons and the tests that enforce them, are in references/rules.md.

Techniques that worked

  • Shoulder-relative hands with arc interpolation. A fixed hand target that the lunging trunk drives the shoulder into crushes the arm, and a straight-line lerp folds the elbow shut mid-way.
  • Aim the forearm, not the wrist. With the wrist capped, the blade lands on the cone the forearm roll allows. To change the blade, change f.
  • Read blade keys in world space. With the trunk wound back about 70°, "over the sword shoulder" points across behind the head. Tilt the chamber tip-up so it reads as a diagonal.
  • Keep the follow-through moving.
    • Quick cut: carry the hand down past the shield-side hip on a bent elbow, with the blade still on the line.
    • Heavy cut: sink across, then rebound with the elbow folding.
    • Never hold an arm out at the foe with the blade hanging.
  • Bow draw. Anchor under the jaw beside the chin, where the hand stays in sight from both cameras. The draw elbow rides 6–8 cm under the arrow. Turn the hips side-on, which fixed draw-shoulder crush better than shrug or elbow poles. Hold the hook through the loose, then send the hand out past the shoulder rather than round the head.
  • Kinetic chain. Hips lead the chest, and the chest leads the arm. A bow's recoil answers the loose and never leads it.

Traps that each cost a round

references/traps.md has symptom → cause → fix for each. The short list:

  • Bone axes. The HumGen head bone is +Y forward and +Z down. Check any bone-local offset against mesh landmarks (face.mjs).
  • Masked failures. The first failing assertion hides every later move in the same test loop, and the first failing gender hides the other.
  • Camera reads.
    • A hand by the neck reads as "behind the head" from the game camera.
    • A blade pointing at the camera reads as "hanging".
    • An elbow bent in the view plane reads as straight.
  • Critic misreads. Thumbnails mislead critics. Check full-resolution frames and the live rig before changing anything.
  • Capture traps.
    • Never edit src while a capture runs.
    • After location.reload(), wait before evaluating the next script.
    • Hand-stepped frames are not FPS measurements.

Report

Lead with what changed in the moves and whether it is live. Then give:

  • a scores table: before → after, lower of the two critics, per surface;
  • the A/B result;
  • the faults still open, named by frame;
  • the tests added;
  • file and push sizes.

Say plainly when a score sits short of the target and why.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Build woven fabric in Three.js with visible threads, realistic sheen, seams, and thick hems. The skill covers folds that preserve texture proportions, light passing through thin cloth, and variations in dye and wear.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Creating backlit curtains
  • Differentiating linen, silk, and wool
  • Adding hems and stitches for close-up views
MengTo/Skills6.8천2026년 10월 18일 업데이트

Build falling leaves in Three.js and similar 3D scenes, with visible front, edge, and back views as they tumble and drift. Coordinate wind, scene depth, camera-aware recycling, and performance checks for a convincing autumn effect.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Adding falling autumn leaves to a 3D scene
  • Coordinating leaf tumble, sideways drift, and wind
  • Managing leaves around buildings and camera movement
MengTo/Skills6.8천2026년 10월 18일 업데이트

Add coordinated seasonal transitions to an existing 3D scene. Blend foliage, lighting, sky, ground, snow, and particles from one shared state while preserving camera controls and interactions, so the same place remains recognizable throughout spring, summer, fall, and winter.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add a four-season selector to an outdoor 3D scene
  • Show seasonal changes in an architectural walkthrough
  • Coordinate foliage, sunlight, sky, and ground appearance
MengTo/Skills6.8천2026년 10월 18일 업데이트

Create or integrate detailed 3D models with smooth outlines and believable edges for close-up views. Prepare lower-detail versions for distant viewing, prioritize loading, and measure rendering costs in the actual scene.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Creating a detailed 3D model for close-up views
  • Replacing visibly faceted curves with smoother geometry
  • Preparing detailed architectural assets for rendering
MengTo/Skills6.8천2026년 10월 18일 업데이트

Prepare detailed 3D materials that remain clear in close-up views. The skill guides texture resolution, physically based material maps, surface mapping, filtering, and progressive loading while checking download size and GPU memory use.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Prepare wood, stone, and fabric materials for close-up views
  • Fix texture seams, grain direction, and normal map orientation
  • Preserve floor and foliage detail at oblique or distant views
MengTo/Skills6.8천2026년 10월 18일 업데이트

Create realistic metal surfaces in Three.js by combining structured reflections, studio lighting, scratches, fingerprints, and beveled edges. Includes polished, brushed, and aged finishes for objects such as tools, rings, and metal product parts.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Fixing metal that looks like gray plastic
  • Creating polished or brushed metal finishes
  • Adding patina and worn edges
MengTo/Skills6.8천2026년 10월 18일 업데이트

MengTo의 스킬 모두 보기

이 스킬의 문제 신고