bevy_render::mesh

Trait MeshAabb

source
pub trait MeshAabb {
    // Required method
    fn compute_aabb(&self) -> Option<Aabb>;
}

Required Methods§

source

fn compute_aabb(&self) -> Option<Aabb>

Compute the Axis-Aligned Bounding Box of the mesh vertices in model space

Returns None if self doesn’t have Mesh::ATTRIBUTE_POSITION of type VertexAttributeValues::Float32x3, or if self doesn’t have any vertices.

Implementors§