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
- 参考文档agents/openai.yaml254 B
- 参考文档dx-hall-of-fame.md7.1 KB
- 其他SKILL.md.tmpl35.8 KB
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
- 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.
- Own an
AnimationMixerper appropriate animation root. CacheclipActionresults and explicit transitions. Set looping, clamping, weight and time scale deliberately; resetting and cross-fading are distinct operations. - 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.
- 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.
- 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.
- 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
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.
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.
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.
integrate-game-wallets
Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.
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.
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.