pub trait Shape: WrappedBase<Shape> {
    // Provided methods
    fn shape_type(&self) -> ShapeType { ... }
    fn child_count(&self) -> i32 { ... }
    fn test_point(&self, xf: &Transform, p: &Vec2) -> bool { ... }
    fn ray_cast(
        &self,
        input: &RayCastInput,
        transform: &Transform,
        child_index: i32
    ) -> RayCastOutput { ... }
    fn compute_aabb(&self, xf: &Transform, child_index: i32) -> AABB { ... }
    fn compute_mass(&self, density: f32) -> MassData { ... }
}

Provided Methods§

source

fn shape_type(&self) -> ShapeType

source

fn child_count(&self) -> i32

source

fn test_point(&self, xf: &Transform, p: &Vec2) -> bool

source

fn ray_cast( &self, input: &RayCastInput, transform: &Transform, child_index: i32 ) -> RayCastOutput

source

fn compute_aabb(&self, xf: &Transform, child_index: i32) -> AABB

source

fn compute_mass(&self, density: f32) -> MassData

Implementors§