Skip to content

3D engine that AI agents drive

1.1 KB
Raw Blame
// What scene_capabilities says about recipe crowds. It lives apart from agent-scene-capabilities.js, which every agent scene bundle carries; the MCP host adds it to the capabilities it returns.
export const CROWD_CAPABILITY_NOTE = "Node field asset.crowd fills a group node with walking people: {id: catalog asset with a skinned clip, crowd:{clip=0 index, count 1-1000, seed=1, layout: grid|scatter, spacing=1.5, columns?, size?, rateJitter=0.15, speed=1, randomYaw, frameRate=30, lods=true, morphs=false, farDistance?+farRate?}}. All people share one batch per material (src/crowd-skinning.js), each at its own time offset; the pose is a pure function of scene time, seed and recipe camera, so a seek equals playing. farDistance m with farRate poses/s: people farther than that from the recipe camera eye hold each pose 1/farRate s. morphs:true keeps morph targets on their own part, at the weights the asset has when loaded, drawn at full detail. Part nodes count against maxNodes (count x materials). scene_inspect assets lists kind crowd with instances, batches, clip, frames, paletteBytes and boundsRadius.";