This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm prototyping a game like Pipe Mania (win '98) and I'm trying to figure out a way to detect if the pipes are all positioned/rotated correctly so the water can flow through, from start to finish.
The game will reside in a grid, with each tile being a pipe.
My first idea was to use a raycast from the "tap" and send it through each pipe (i.e grid piece) and if it makes it from the start to the end point, the user has assembled the pipes correctly.
The pipes can be either:
- Vertical
- Horizontal
- T section
- Cross section
- 90° joint
Is this idea even possible? If not, what other ways could I approach this?
I'm not looking for code here, just suggestions, psudo code and ideas.
Thanks in advance.
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Unity3D/com...