Hello, I am working on a 3D project where a process diagram is requested at runtime and visualized as system of rivers and ponds representing events, tasks, flows, etc. At the moment it is represented by some flat GameObjects laying on a plane which are instantiated via code.
Now I am searching for a solution that a boat could drive on this river, using collision physics with the edges of the rivers and ponds.
Immediately I thought of boolean operations, where I could cut out my river parts out of the ground (at runtime) and fill the remaining holes with water. I quickly found some answers that this problem is pretty hard to solve and that there seem to be no existing assets or libraries solving this.
Another way could be to somehow put only colliders at the edges of the whole river system, so that the boat can’t escape the water and collides with the boundaries. But I find it really hard to think of a way to assemble the diagram with those kind of borders without flaws. The boat can sink into the ground with wisely chosen colliders, i dont need water for that, but the edge collision part is where I struggle.
The critical points are:
- the building of the river system happens at runtime
- the process diagrams can have any form or arrangement
- I want the boat to stay inside the river elements
Does someone have an idea how to solve this?
