Skip to content
Konjure / spatial intelligence

Quad

← Builtin reference

A rectangular local XY surface facing local +Z.

Signature

type Quad { width: Number = 1; height: Number = 1; }

Width and height must be positive when rendered. The adapter expands Quad into two triangles with +Z normals; it is not a RigidBody collision shape.

Fields

width: f64
Width in meters along local X; defaults to 1.
Default1
height: f64
Height in meters along local Y; defaults to 1.
Default1

Examples

Create a quad

The adapter places the surface in local XY.

Tick 0 · 0.00 sThis device
main.kj⌘ / Ctrl + Enter
Loading…Drag to orbit · select to inspect
0 entities
Loading the language runtime…
Output 0
No output.
Expected output
3

Rust definition

Interpreter RecordValue geometry schema consumed by spatial adapters.

See also