summaryrefslogtreecommitdiff
path: root/src/sim/entity/mod.rs
blob: ab10ea81de96645720721a1af9715fd82dff3c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// use glam::{IVec2, Vec2};
// use rapier2d::{dynamics::RigidBodyHandle, geometry::ColliderHandle};

// use crate::sim::cell::cell::Cell;

// pub struct EntityCells {
//     pub size: IVec2,
//     pub cells: Vec<Cell>,
// }
// pub trait EntityBehaviour {
//     fn update (&mut self) -> ();
// }

// pub struct Entity {
//     pub rb_h: Option<RigidBodyHandle>,
//     pub collider_h: Option<ColliderHandle>,
//     pub cells: EntityCells,
//     pub behaviour:
// }

// impl Entity {
//     pub fn position(&self, rbsm:) -> Vec2 {

//     }
//     pub fn destroy(&mut self) -> {

//     }
// }