- Home /
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
Answer by Scribe · Dec 15, 2010 at 04:00 PM
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
Scribe
Unfortunately, this won't let me turn. I want to have it turn automatically (like it does in the example I gave).
turn as in the camera turn slightly when you move like in the example or the set route should go round a bend?
I don't know if you are still looking for an answer as to how to do this. But I would look up Bezier curves. Then script a waypoint system and run the bezier curve through them.
Answer by Alter · Jan 23, 2013 at 06:08 PM
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.
Your answer
Follow this Question
Related Questions
Move Camera Over Terrain Using Touch Input 2 Answers
Horizontal slider and camera 3 Answers
Camera and Target help. 3 Answers
Network Moving Help. 1 Answer
Camera to smoothly LookAt() a series of empty objects along a curved path that act as a 'rail' 3 Answers