- Home /
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,
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
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
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
Follow this Question
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