Hello Everybody,
i’m new to unity, but i’ve got enough programming experience so that should not be the problem.
I’m going to create a game (in unity) where a tiny spaceship flies into the lungs of a person.
It starts when the ship enters the nose.
Then it goes through the throat, then through the trachea and then it enters the lungs (with lots of intersections)
The ship is guided by the air the person breathes. One breath should guide the ship till the end of the lungs.
Then when then person exhales, the ship should be guided back to the nose (and out of it).
Now the tricky part (i think) it getting the guidance to work. The ship should be guided to the end of the lungs. But there are many ends due to all the intersections in the lungs.
My idea is to put al lot of “guiding vectors” on the map. The ship should be guided to the direction that the vector that is the closest to the ship points to.
There should be vectors for entering the lungs and for leaving the lungs.
My question is: Can this be done? Is this the easiest way of doing this? Are there any reference i can use?
Please let me know.
greetings,
Ramon[/img]