3D engine that AI agents drive
Merge origin/main into work/825
Nguyen Xuan An97977a75a6ea
diff --cc src/agent-motion.jsindex 8b396188,4b4cfc25..867e3f93--- a/src/agent-motion.js+++ b/src/agent-motion.js@@@ -494,8 -491,7 +494,8 @@@ export function normalizeAgentMotion(inconst nodes = new Set((recipe.nodes ?? []).map(node => node.id));const materials = new Set((recipe.materials ?? []).map(material => material.id));// An imported asset lists its morph targets; a recipe mesh offers the names of its shape keys.- const morphTargets = new Set(recipe.morphTargets ?? (recipe.geometries ?? []).flatMap(geometry => (geometry.shapeKeys ?? []).map(key => key.name)));+ const oceanGeometries = new Set((recipe.geometries ?? []).filter(geometry => geometry.type === 'mesh' && (geometry.stack ?? []).some(node => node?.op === 'ocean')).map(geometry => geometry.id));+ const morphTargets = new Set(recipe.morphTargets ?? (recipe.geometries ?? []).flatMap(geometry => geometry.grow ? [geometry.grow.name] : (geometry.shapeKeys ?? []).map(key => key.name)));const identities = new Set();let keyframeCount = 0;const tracks = inputTracks.map((track, index) => {