struct
HtmlAnchor
pub struct HtmlAnchor {
pub path: Vec<usize>,
pub local: Transform,
pub parent: Mat4,
pub object: Option<usize>,
pub transform: bool,
pub distance_factor: Option<f32>,
pub center: bool,
pub occlude: bool,
}An html element in a scene: where its DOM goes.
html(position: "0 1 0", distance-factor: 8, occlude: true) { Card { … } } // pinned
html(transform: true, rotation: "0 30 0", scale: 0.01) { … } // on a plane
mesh { sphereGeometry(…) html(position: "0 1.2 0") { Badge "Sphere" } } // on an objectFields
object
pub object: Option<usize>…or the object it's attached to (its pose, motion included, applies).
transform
pub transform: boolOn a plane in the scene (CSS 3D transform) rather than pinned to a point and facing the screen.
distance_factor
pub distance_factor: Option<f32>Pinned: scale with distance, this being the distance at which it's its natural size. Transform: world units per CSS pixel × 100.