struct Box3D
Swift
struct Box3D
A box. With a Material3D, the front face (+z) shows its picture and the
other faces its edge colour; without one, every face is color.
Sources/LavaUI/Spatial.swift:619
Constructors
init<ID>(id: ID, width: Float = 1, height: Float = 1, depth: Float = 0.08, color: Color = .accent) where ID : Hashable
Creates a box. id identifies the object across rebuilds, which is what
lets it animate between transforms and report hover and taps. Sizes are
in world units; the default is a thin card.
Sources/LavaUI/Spatial.swift:624
Methods
func spatialElements() -> [SpatialElement]
Not documented.
Sources/LavaUI/Spatial.swift:632