A sphere centered at its entity origin.
Signature
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.Default
0.2
Examples
Create a sphere
Geometry becomes renderable when attached to an entity.
main.kj⌘ / Ctrl + Enter
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
0.5
Rust definition
Interpreter RecordValue geometry schema consumed by spatial adapters.
View Rust documentation →Support: rendered