Skip to content
Konjure / spatial intelligence

Sphere

← Builtin reference

A sphere centered at its entity origin.

Signature

type Sphere { radius: Number = 0.2; }

The spatial adapter requires a positive radius before tessellation. A Sphere is also one of the two collision shapes accepted by RigidBody.

Fields

radius: f64
Radius in meters; defaults to 0.2 and must be positive for physics.
Default0.2

Examples

Create a sphere

Geometry becomes renderable when attached to an entity.

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
0.5

Rust definition

Interpreter RecordValue geometry schema consumed by spatial adapters.

See also