dynamis-model 0.4.2

GPU-driven physics engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ContactEventKind {
    Begin,
    End,
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ContactEvent {
    pub kind: ContactEventKind,
    pub first: crate::body::BodyHandle,
    pub second: crate::body::BodyHandle,
    pub sensor: bool,
    pub point: [f32; 3],
    pub normal: [f32; 3],
}