#Logic behind making sure water can reach the end?

15 messages · Page 1 of 1 (latest)

viral radish
#

I was think maybe using raycast and if it hits a part then the old raycast if derstroyed and a new one is made. Im not sure if theres better ways. Will be grateful for any tips!

zenith bluff
#

maybe attributes or something for getting the two endpoints of the pipes?

frosty jacinth
zenith bluff
#

if the water goes in through one end point

#

it uses the other

viral radish
#

hmmm

#

I could try that

viral radish
#

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

frosty jacinth
#

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

viral radish
#

ill give it a try and see how far I get