Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

1.2 KB
Raw Blame

title: "raea physics" summary: "Make the bakes and play: rigid bodies, soft goo, and parts cut out of a .glb." order: 103 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 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.

raea physics bake request.json -o bake.json
raea physics goo spec.json
raea physics part media/kit.glb Wheel_L Wheel_R

Usage

raea 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.

See also

  • 3D shows physics in a scene.