1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use crate::{Material, Shape};
use rapier3d::dynamics::{RigidBody, RigidBodyHandle};
use rapier3d::geometry::ColliderHandle;

#[derive(Debug, Clone)]
pub struct Mesh {
    pub shape: Shape,
    pub material: Material,
    pub body: RigidBody,
}

#[derive(Debug, Copy, Clone, PartialEq)]
pub struct MeshHandle {
    pub entity: u128,
    pub body_handle: RigidBodyHandle,
    pub collider_handle: ColliderHandle,
}