1
2
3
4
5
6
7
8
9
10
11
12
13
use rapier3d::prelude::CollisionEvent;
use specs::{Component, Entity, VecStorage};

#[derive(Default, Component)]
#[storage(VecStorage)]
pub struct CollisionsComp(pub Vec<(CollisionEvent, Entity)>);

impl CollisionsComp {
    /// Create a new component of the collisions this entity has.
    pub fn new() -> Self {
        Self::default()
    }
}