Skip to content
Konjure / spatial intelligence

Cylinder

← Builtin reference

A cylinder aligned with local Y.

Signature

type Cylinder { radius: Number = 0.2; height: Number = 1; }

Radius and height must be positive when a spatial adapter tessellates this geometry. Cylinders currently render but are not RigidBody collision shapes.

Fields

radius: f64
Radius in meters; defaults to 0.2.
Default0.2
height: f64
Full height in meters along local Y; defaults to 1.
Default1

Examples

Create a cylinder

The current spatial adapter renders it along local Y.

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