Skip to main content

GeometryQuery

Trait GeometryQuery 

Source
pub trait GeometryQuery {
    // Required method
    fn get_geometry_bbox(&self, handle: GeometryHandle) -> Option<BoundingBox>;
}
Expand description

Trait for resolving a geometry handle to its local-space bounding box.

Implement this on your asset storage type (e.g. AssetServer) so that Scene::get_bbox_of_node can compute world-space bounds without depending on the asset crate directly.

Required Methods§

Implementors§