wip: transitioning to the newer comet_structs and new ComponentStorage through a FlatMap (not the rust implementation)

This commit is contained in:
lisk77 2025-03-04 23:52:16 +01:00
parent 5b43c7a319
commit db405bfb2e
12 changed files with 214 additions and 802 deletions

View file

@ -298,7 +298,7 @@ impl Camera2D {
self.dimensions = dimensions;
}
fn in_view_frustum(&self, camera_pos: Position2D, entity: Position2D) -> bool {
pub fn in_view_frustum(&self, camera_pos: Position2D, entity: Position2D) -> bool {
let left = camera_pos.x() - self.zoom;
let right = camera_pos.x() + self.zoom;
let bottom = camera_pos.y() - self.zoom;
@ -328,4 +328,4 @@ impl Camera for Camera2D {
Mat4::OPENGL * Mat4::orthographic_matrix(left, right, bottom, top, 1.0, 0.0)
}
}
}