Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by bubba8167 · Dec 15, 2010 at 04:38 AM · cameramoveshooterrail

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

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

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bubba8167 · Dec 15, 2010 at 07:36 PM 0
Share

Unfortunately, this won't let me turn. I want to have it turn automatically (like it does in the example I gave).

avatar image Scribe · Dec 16, 2010 at 05:50 PM 0
Share

turn as in the camera turn slightly when you move like in the example or the set route should go round a bend?

avatar image bubba8167 · Dec 18, 2010 at 02:00 AM 0
Share

set the route that should go around a bend

avatar image Pancratius · Apr 28, 2014 at 07:38 PM 0
Share

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.

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges