Answer the question
In order to leave comments, you need to log in
How to procedurally generate a branching tunnel for a mobile flyer?
It is necessary to implement a procedurally generated tunnel for a mobile game. In the game, we simply fly through the tunnel, flying around obstacles. The difficulty lies in the fact that it is not so easy to generate a regular unidirectional tunnel, but how to make forks? So that the player can choose which direction to fly.
Answer the question
In order to leave comments, you need to log in
This is called a directed graph.
How do you generate a simple tunnel? If on the fly, then when creating each new waypoint, you can decide whether it will be a fork. If so, make two points and draw a tunnel.
If not on the fly, then a little more difficult. Please ask again in this case.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question