Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by ToeBeanGames · Oct 20, 2017 at 09:43 AM · splinerail

Spline-based rail grinding

So I'm working on a Sonic fan game using Hedge Physics, and the rail grinding included was never fully implemented and is not only incredibly buggy but also waypoint-based. What I'd like to accomplish is something more spline-based, where A) the player follows the spline at a certain speed going either direction, and B) the player can jump off of the rail at will.

I'm not asking for a full script, I just need a good spline asset (preferrably free or cheap) and somewhere to start on the actual grinding.

Comment
Add comment · Show 1
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 ToeBeanGames · Apr 12, 2018 at 09:47 PM 0
Share

It's been a while since posting this, so I figured I'd give an update. I did import the spline part of Surge and did have some very simple version of grinding working but Surge has since updated and broke its Spline Follower script so now I need to find a different way to move the player along the spline.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MadboyJames · Feb 19, 2018 at 01:09 AM

So I'm here to get some grind rail ideas, and since it's been quite a few months since you posted this, I am wondering if you have found a solution.
Additionally, I have played around with some grind rail mechanics, and would like to share what I have discovered if you are still wondering/ working on this part of the project. I used "Surge" Splines (it has a bunch of different free features, but the Splines extension is the only one I downloaded). I gave each spline an edge collider, and a sub-object called "playerDock". I set it so the dock moved along the rail, and the player had its transform set equal to the transform of the dock. It works, It feels like it's a messy way to do it. So I'm asking around to see if anyone has any better ideas. :)

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
avatar image
0

Answer by Meguia · Feb 19, 2018 at 04:19 AM

Hi @GarryGuertena and @MadboyJames

You can use spline-based procedural geometry. This means that you also can generate the right mesh collider for your geometry.

It's explained in detail in this video: https://www.youtube.com/watch?v=o9RK6O2kOKo

I'm pretty sure that you can download the code if you don't want to write it yourself.

Good luck with your games!

Comment
Add comment · Show 1 · 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 MadboyJames · Feb 19, 2018 at 08:49 PM 0
Share

Alrighty, that seems pretty solid. Thank you!

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

72 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Moving a GameObject along a Custom (Curved) Spline 3 Answers

how to continue spline? 0 Answers

How to generate railings (roller coaster track) along the created spline? 0 Answers

Keep object on rail? 1 Answer

drawing path on the polygon surface and insert objects along that path 1 Answer


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