dynamis_model/event.rs
1#[derive(Clone, Copy, Debug, PartialEq, Eq)]
2pub enum ContactEventKind {
3 Begin,
4 End,
5 Persist,
6}
7
8#[derive(Clone, Copy, Debug, PartialEq)]
9pub struct ContactEvent {
10 pub kind: ContactEventKind,
11 pub first: crate::body::BodyHandle,
12 pub second: crate::body::BodyHandle,
13 pub sensor: bool,
14 pub point: [f32; 3],
15 pub normal: [f32; 3],
16}