crashcat docs
    Preparing search index...

    Function shape

    • Render debug wireframe for a single shape at a given world-space transform.

      Parameters

      • s: Shape
      • position: [number, number, number]
      • quaternion: [number, number, number, number]
      • Optionaloptions: Partial<ShapeOptions>

      Returns DebugRenderResult

      const { vertices, colors } = debug.shape(myShape, [0, 0, 0], [0, 0, 0, 1]);
      const { vertices, colors } = debug.shape(myShape, pos, quat, { color: [0.2, 1.0, 0.2] });