Taos API Reference
    Preparing search index...

    Class PhysicsScene

    Index

    Constructors

    Properties

    device: GPUDevice

    WebGPU device, exposed so demos can build their own render meshes.

    Accessors

    Methods

    • Adds a large static ground slab (a thin box) plus its visual. The top surface sits at y = 0.

      Parameters

      • size: number = 60
      • color: RGB = ...

      Returns Body

    • Adds a static height-field collider (HeightFieldShape) — the fast terrain path. renderMesh and the height grid come from the same generator.

      Parameters

      Returns void

    • Links two bodies with a point (ball-and-socket) constraint anchored at a shared world-space pivot. The bread-and-butter joint for chains/pendulums.

      Parameters

      • body1: Body
      • body2: Body
      • worldPivot: Vec3

      Returns void