I'm wondering if there's an efficient way to detect if a unit or other object is colliding with water. The best thing I could think of is making a region where the water is, and having a trigger check the conditions that if a unit is inside the region and the height of the point of the unit is less than the height of the water then to do whatever action.
However it's sort of inefficient if I want to change water levels. I'm sure there's a simpler way to detect this especially with Blizzard's lava campaign map, where units would die if they made contact with the rising lava.
Has anyone figured out a better way of detecting water collision?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm wondering if there's an efficient way to detect if a unit or other object is colliding with water. The best thing I could think of is making a region where the water is, and having a trigger check the conditions that if a unit is inside the region and the height of the point of the unit is less than the height of the water then to do whatever action.
However it's sort of inefficient if I want to change water levels. I'm sure there's a simpler way to detect this especially with Blizzard's lava campaign map, where units would die if they made contact with the rising lava.
Has anyone figured out a better way of detecting water collision?