Skip to main content

Narrowphase

Trait Narrowphase 

Source
pub trait Narrowphase {
    // Required methods
    fn test_overlap(
        &self,
        transform_a: &Transform,
        transform_b: &Transform,
    ) -> bool;
    fn contacts(
        &self,
        transform_a: &Transform,
        transform_b: &Transform,
    ) -> Vec<ContactPoint>;
}
Expand description

Trait for narrowphase collision queries.

Required Methods§

Source

fn test_overlap(&self, transform_a: &Transform, transform_b: &Transform) -> bool

Test whether two convex shapes (described by their transforms) overlap.

Source

fn contacts( &self, transform_a: &Transform, transform_b: &Transform, ) -> Vec<ContactPoint>

Compute contact points between two shapes.

Implementors§