very important: how to make navigation into a 3_D object

i want to make navigation inside a 3_D object as a tube which have an M like shape.
By way that is very important for me so please explain it in details and if you have any sample or code send it to me.

So your world is like inside a hollow extruded m shape?