#Logic behind making sure water can reach the end?
15 messages · Page 1 of 1 (latest)
maybe attributes or something for getting the two endpoints of the pipes?
you dont really need raycasts for that
you can do that fully with scripts
just need to know the grid cell at every end of a pipe
then just go from pipe to pipe
if it spits then you start a coroutine and continue until the next pipe is the goal
could be a bit complex actually
yea that sounds pretty tough
maybe splitting the corner parts or straight pipes into two sections?
and having it enter from one part of it and creating a raycast from the other was my best guess
but attributes sounds promising
thanks!
and so does using the grid cells
its just like a flood fill algorithm
the most complicated thing is knowing the end points for each pipe with that rotation
but thats also not that hard
ill give it a try and see how far I get