3d rail shooter rails

I would like to make a game similiar to star fox (an on-rail shooter) for a few friends of mine. But, I can't figure out how to set the rails. I saw a video on youtube of someone doing a path for a character to follow, but you can't move side to side or up and down.

I did see a couple games where I did see a couple games where you can move around the screen like what I want, but no explanation was given on how they achieved that.

So, my question is, how do you define a path where you can move around the screen?

Here's an example of what I want to do: http://www.youtube.com/watch?v=rjezvmnXzPo

Hi I'm not sure if it would be perfect but it would work:

basically you make a room out of cubes keeping the box collider on them and your character but for the room you would get rid of the mesh render to make it invisible and attach it to your camera or make its transform position forward the same as the character this would be when it got to the edge of the box it would not move any further

Hope this helps


I’m trying to figure out the same thing-

An idea I just came up with was to ad an invisible game object to the path and then get a following script attach that to the player and get them to follow the invisible game object. This way the player will have full control and will be able to move around to some degree.