Skip to content
Konjure / spatial intelligence

Box

← Builtin reference

An axis-aligned local box with full dimensions.

Signature

type Box { size: Vec3 = Vec3 { x: 1, y: 1, z: 1 }; }

The spatial adapter validates positive dimensions before rendering. Box is one of the two collision shapes accepted by RigidBody; size uses full extents.

Fields

size: Vec3
Full width, height, and depth in meters; each physical dimension must be positive.
DefaultVec3 { x: 1, y: 1, z: 1 }

Examples

Create a box

Size records full extents, not half extents.

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
2

Rust definition

Interpreter RecordValue geometry schema consumed by spatial adapters.

See also