Trait collision::dbvt::TreeValue [] [src]

pub trait TreeValue: Clone {
    type Bound;
    fn bound(&self) -> &Self::Bound;
fn get_bound_with_margin(&self) -> Self::Bound; }

Trait that needs to be implemented for any value that is to be used in the DynamicBoundingVolumeTree.

Associated Types

Bounding volume type

Required Methods

Return the bounding volume of the value

Return a fattened bounding volume. For shapes that do not move, this can be the same as the base bounding volume. It is recommended for moving shapes to have a larger fat bound, so tree rotations don't have to be performed every frame.

Implementors