Schemas / Simulation

rig.sim.world

v1.0.0 · stable maturity: draft 2 fields 0 required

Fields

FieldTypeMeaning
gravity vec3 optional Optional. Acceleration, scene units per second squared. Absent = the host default
stepSeconds number> 0 optional Optional. Fixed step. Absent = one step per Update, using SUDE dt

Shared physical scene. Format when present. Compose on the scene rig.spatial.vertex.

+Y is up, so Earth gravity in a metres scene is [0, -9.81, 0]. A host substeps when stepSeconds is shorter than the frame.

A rig.sim.rigidbody gravity replaces this vector. gravityScale multiplies it when the body does not set its own. The solver stays in the host.

JSON Schema

Resolves at https://rig.works/schemas/rig.sim.world.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.sim.world.schema.json",
  "title": "rig.sim.world",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "gravity": {
      "$ref": "./_defs.schema.json#/$defs/vec3"
    },
    "stepSeconds": {
      "type": "number",
      "exclusiveMinimum": 0
    }
  },
  "x-rig-maturity": "draft"
}

Seen in

robot-lab.json