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
0
Question by stevo · Jul 11, 2012 at 08:51 PM · physicspath

Unique Mine Cart / Roller Coaster Setup

I'm wanting to create a roller coaster style setup using physics and a rigid body to add some reallism. However I'm having issues deciding how to approach it. Most roller coaster style setups use some kind of follow spline / itween setup however my track setup is more dynamic. Some pieces of the track will be missing requiring the user to jump to the next section as well as conatin switch sections that will require the user to hit a track switch to change their course. I know I need some kind of follow path setup but with some flexibility. I don't want the mine cart to simply slide along the track. I intend on using the wheel colliders on the cart to add some physics however the cart needs to follow a path (I cant have the users steering the cart...) However the cart needs to be able to jump and fall off the tracks if necessary. I'm afraid if I use the spline controller it will "drag" the cart along the track and remove the realism...I'm wondering if I need to have an invisible game object follow the path and then the cart will follow the game object and leave the up and down axis free so if the cart is following the game object and their is no track it will fall off and end the level. Any thoughts on how to achieve this would be great. Also I was wondering if ITween would be the best route to try? And would I need multiple splines to achieve the break in the tracks as well as the "sub" track sections where a track switch would be?

Thanks,

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
1
Wiki

Answer by Ingen · Jul 16, 2012 at 10:25 PM

I'm sorry but my English is not so good, if I well understood think this explain better than me

http://answers.unity3d.com/questions/52216/Hinge-Joints-distance-to-connected-body.html

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 Ingen · Jul 12, 2012 at 01:00 AM

Hallo, I think you are in right way try look at Fixed Joint or Hinge Joint

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 stevo · Jul 16, 2012 at 08:20 PM 0
Share

I think the desired effect i'm going for is similar to a person pulling a wagon. The cube being the person and the cart being the wagon. The cube would steer the carts front axle and also "pull" the cart along allowing the wheels to roll, this way I wouldn't need to have a complex look at / adjust torque to steer and follow the cube type setup. $$anonymous$$y only concern is the Fixed Joint would cause the cart to stiffly rotate vs allowing the wheels to steer the cart. I'm also concerned that this might not allow my cart to jump during certain sections of the track as needed...Perhaps a hinged joint may be needed...Does the hinged joint allow you to move on all axis?

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

6 People are following this question.

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

Related Questions

Need help with physics 1 Answer

Path Object Is Going To Travel 1 Answer

How to bind a physics object to a path? 1 Answer

Throw a ball at a target 0 Answers

Implement 2D movement in a 3D environment while retaining physics 2 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