AGENT SKILL

threejs-animate-actors

Integrate Three.js AnimationMixer clips, actor blending, attachments and animation teardown without handing gameplay authority to playback.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 4
Forks
3

01 前言 Front Matter

name
threejs-animate-actors
engines
[ "THREEJS" ]
description
Integrate Three.js AnimationMixer clips, actor blending, attachments and animation teardown without handing gameplay authority to playback.

02 资源文件 3

03 SKILL.md 正文

Animate Three.js Actors

When to use

Connect actor clips to gameplay state, blend actions, attach props, or repair animation lifecycle defects.

Engine and dependencies

Before edits or tool launches, run resolve-engine.sh and resolve-skill.sh threejs-animate-actors; require compatibility and respect task override scope. Inspect the locked Three.js version, rig/clip contract, movement authority and art pipeline. Integrate authorized assets; do not implicitly select generation or install packages.

Workflow

  1. Validate hierarchy, rest pose, scale, clip names, durations and bindings. Use the installed revision's skeleton-aware cloning approach for skinned actors; independent copies must not accidentally share mutable bone state.
  2. Own an AnimationMixer per appropriate animation root. Cache clipAction results and explicit transitions. Set looping, clamping, weight and time scale deliberately; resetting and cross-fading are distinct operations.
  3. Update mixers from the declared presentation clock in seconds. Decide pause, slow motion and offscreen behavior; never advance one mixer from two loops. Interruption cancels pending completion effects and restores a valid pose.
  4. Choose in-place motion or an explicit root-motion extraction adapter. Feed extracted intent through authoritative movement/collision and avoid double translation. Three.js supplies playback, not a collision-aware controller.
  5. Drive damage, inventory and ability outcomes from simulation. Completion/loop events are presentation signals or validated inputs under the gameplay contract; repeated or stale events cannot duplicate outcomes.
  6. Attach equipment to named bones/sockets with declared offsets. On despawn remove listeners, stop actions and release mixer caches with appropriate uncache methods. Release shared assets only after their final owner leaves.

Output and verification

Deliver a clip manifest, transition adapter, clock/movement ownership and teardown. Test missing clips, interruption, independent copies, pause/resume, spawn/despawn cycles and frame-rate variation. Record foot sliding, prop alignment and blends in the actual browser; mixer-state tests do not prove pose quality. Check the AnimationMixer API against the locked version.

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4