1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use crate::bounding_volume::AABB;
use crate::math::Isometry;
use crate::partitioning::BVHImpl;
use crate::query::{ContactPrediction, ContactPreprocessor};
use crate::shape::Shape;
use na::RealField;
pub trait CompositeShape<N: RealField> {
fn nparts(&self) -> usize;
fn map_part_at(
&self,
_: usize,
m: &Isometry<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>),
);
fn map_part_and_preprocessor_at(
&self,
_: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>),
);
fn aabb_at(&self, i: usize) -> AABB<N>;
fn bvh(&self) -> BVHImpl<N, usize, AABB<N>>;
}