3D engine that AI agents drive
Add size note for breakable glue (#979)
Nguyen Xuan Anc084338142b3
diff --git a/changes/979.size.md b/changes/979.size.mdnew file mode 100644index 00000000..65ab7391--- /dev/null+++ b/changes/979.size.md@@ -0,0 +1,4 @@+- entry:physics: the breakImpulse check on fixed joints, the contact force events that feed it and the jointBreaks record (about 430 bytes gzip); breakable glue is the core of fracture and needs the bake loop+- scene:agent-scene: the recipe breakImpulse joint field, the jointBreaks report and one capability line (about 150 bytes gzip)+- scene:agent-scene+lazy: the same code, once, in the lazy physics chunk (about 630 bytes gzip)+- goal:agent-scene: the scene is over its goal already and this adds a recipe field an agent needs to glue and break structuresdiff --git a/src/agent-scene-capabilities.js b/src/agent-scene-capabilities.jsindex 4cd7c969..ef6b1239 100644--- a/src/agent-scene-capabilities.js+++ b/src/agent-scene-capabilities.js@@ -308,7 +308,7 @@ export const AGENT_SCENE_CAPABILITIES = Object.freeze({shapes: Object.freeze(['box', 'ball', 'capsule', 'convex', 'trimesh']),jointTypes: Object.freeze(['spherical', 'revolute', 'prismatic', 'fixed']),sensors: true, collisionLayers: 16,- breakableJoints: 'joints[].breakImpulse (fixed joints, N s): the joint breaks in the bake when either body takes a contact impulse (force x 1/60 s) at or above it in one step, so resting weight does not. The report lists jointBreaks { joint, time, impulse }. Fracture a convex part into glued fragments with fractureMesh and fragmentPhysics from src/fracture.js (docs/physics.md).',+ breakableJoints: 'fixed joint breakImpulse (N s): breaks when a body takes a contact impulse (force x 1/60 s) over it in one step; scene_inspect lists jointBreaks. fractureMesh in src/fracture.js makes glued fragments (docs/physics.md).',ragdoll: 'physics.ragdoll {armature}: limp capsule per bone; needs a floor',limits: Object.freeze({ maxBodies: 64, maxJoints: 64, maxDuration: 10, framesPerSecond: 60, maxTrimeshTriangles: 20000, maxHullPoints: 2048 }),}),