Trait jumpy::core::physics::collisions::rapier::SimdCompositeShape
source · pub trait SimdCompositeShape {
// Required methods
fn map_part_at(
&self,
shape_id: u32,
f: &mut dyn FnMut(Option<&Isometry<f32, Unit<Complex<f32>>, 2>>, &(dyn Shape + 'static)),
);
fn qbvh(&self) -> &GenericQbvh<u32, DefaultStorage>;
}
Expand description
Trait implemented by shapes composed of multiple simpler shapes.
A composite shape is composed of several shapes. For example, this can be a convex decomposition of a concave shape; or a triangle-mesh.
Required Methods§
sourcefn map_part_at(
&self,
shape_id: u32,
f: &mut dyn FnMut(Option<&Isometry<f32, Unit<Complex<f32>>, 2>>, &(dyn Shape + 'static)),
)
fn map_part_at( &self, shape_id: u32, f: &mut dyn FnMut(Option<&Isometry<f32, Unit<Complex<f32>>, 2>>, &(dyn Shape + 'static)), )
Applies a function to one sub-shape of this composite shape.
sourcefn qbvh(&self) -> &GenericQbvh<u32, DefaultStorage>
fn qbvh(&self) -> &GenericQbvh<u32, DefaultStorage>
Gets the acceleration structure of the composite shape.