voxelize/world/components/
collisions.rs

1use rapier3d::prelude::CollisionEvent;
2use specs::{Component, Entity, VecStorage};
3
4#[derive(Default, Component)]
5#[storage(VecStorage)]
6pub struct CollisionsComp(pub Vec<(CollisionEvent, Entity)>);
7
8impl CollisionsComp {
9    /// Create a new component of the collisions this entity has.
10    pub fn new() -> Self {
11        Self::default()
12    }
13}