userGriglercancel
branchrust_reboot/main/world_update_2/watervisibilitygrid_fixescancel
2 Months Ago
WaterVisibilityGrid fixes - made it non-static, easier to manage lifetime this way and it should've been owned by the WaterCollision system anyway - adjusted grid to handle ref-counting, this isn't strictly necessary but is the only way to sanely verify if the system has broken (memory footprint is ~1MB) - slightly inflated static trigger bounds by an absolute value to manage small noise changes in position that can push it over a boundary - added a virtual function to EnvironmentVolumeTrigger that lats derived classes run code with a guaranteed trigger collider (some visibility volumes were being missed in OnEnabled from this)