Added grid bounds

This commit is contained in:
Yousef Khadadeh 2025-09-20 13:28:28 +03:00
parent dcfebcf6f4
commit 2836309cf5
3 changed files with 75 additions and 15 deletions

View file

@ -17,6 +17,8 @@ class WorldGrid {
WorldScalar size{50000000};
bool visible = true;
WorldVec offset{0, 0};
std::optional<SCollision::AABB<WorldScalar>> bounds;
Vector4f color{1.0f, 1.0f, 1.0f, 1.0f};
void set_remove_divisions_outwards(bool v);
bool get_remove_divisions_outwards();
@ -24,8 +26,6 @@ class WorldGrid {
void set_subdivisions(uint32_t v);
uint32_t get_subdivisions();
Vector4f color{1.0f, 1.0f, 1.0f, 1.0f};
static unsigned GRID_UNIT_PIXEL_SIZE;
private:
bool removeDivisionsOutwards = false;