Files
shane d873402ac5 raea goal is the loop, raea make the asset tools (#269)
One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done (goal check, tasks, judge, seen, gates, next); the brief's contract is goal: (one goal or a list, a workflow inline), and its plan is plan:. raea make is making a finished asset: character, clothes, motion, solid, wear, splat, physics, bake, sounds, component, the kit pipeline and shots. Instruments (check, judge, ask, world, scene faults, light check) stay top-level. With it: the montage pack (MK48-MK51), JavaScriptCore fixes raea goal needs (CommonJS named exports, reserved words too, dynamic import of file URLs, process.exit from a promise, stdin for -), raea-cli-goal and raea-cli-refused split out of raea-cli, and skills at raea-skills 105aede.
2026-11-29 18:43:09 -08:00

39 lines
1.3 KiB
Markdown

---
title: "raea make physics"
summary: "Make the bakes <Physics> and <Goo> play: rigid bodies, soft goo, and parts cut out of a .glb."
order: 108
sources: ["runtime/react/src/scene/physics.rs", "systems/bake/src"]
---
A `<Physics>` or `<Goo>` in a composition plays a bake: the simulation run once ahead of time, so every render of it
is the same. A render makes the bakes it needs on its own; `raea make physics` makes one by hand from its request, in the
composition's asset store. `part` cuts named nodes out of a `.glb` so each can be its own body.
```sh
raea make physics bake request.json -o bake.json
raea make physics goo spec.json
raea make physics part media/kit.glb Wheel_L Wheel_R
```
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
## Usage
```sh
raea make physics bake REQUEST.json [-o OUT.json] | physics goo SPEC.json | physics part SRC.glb NODE...
```
Headless: it needs nothing running and opens no window. Its arguments go to a parser of its own, whose forms are listed above.
## Flags
| Flag | Takes | What it does |
| --- | --- | --- |
| `-o` | `OUT.json` | Also write the result to this file, in place of printing it. |
<!-- generated:end -->
## See also
- [3D](../../guides/3d.md) shows physics in a scene.