gaia-character
Character using @drawcall/acta
Acta is a JSON-based language to define humanoid character behaviors for three.js.
Important: You should not create these behaviors yourself, rather use the createCharacter tool to generate a character and editCharacter to modify it. When prompting, describe character states and transitions (e.g. "idle", "waving") — these can then be driven via the update method.
Important: You cannot provide or create animation assets. The acta tool will use appropriate animations from its own library. Do not attempt to create animation files before calling createCharacter.
Quick Start
When using physics, you should pass an
applyMovecallback toCharacter.load(). This ensures movement is only applied during movement animations — preventing the character from sliding during idle, attack, or other non-movement states.
import { BvhCharacterPhysics, BvhPhysicsWorld } from '@pmndrs/viverse'
// Setup physics
const physicsWorld = new BvhPhysicsWorld()
const characterPhysics = new BvhCharacterPhysics(physicsWorld)