- Home /
Is it possible to have a vehicle stick to a platform when it flips?
I'm looking to create platforms that flip at random - and flip the vehicle or character on them at the same time when they turn, but only if conditions are met. At the moment I'm not sure if this would just need parenting, or some kind of gravity effect.
Answer by smnerat · Dec 02, 2012 at 10:26 PM
In my opinion parenting would be your best bet and that messing with gravity won't work out so well. Taking the gravity route, you would end up having to apply a different "gravity" to different objects in your scene. I could be wrong, it depends on your game and your scene. I believe something along the lines of the following would work well enough though.
if (condition1)
if (condition2)
if (condition3 && condition4)
vehicle.parent = platform;
Your answer
Follow this Question
Related Questions
Edit this script so that on the second jump change the gravity to 5 2 Answers
How can I make a game object move in parabolic motion as if it were under gravity? 2 Answers
Change direction of gravity for a specific instance of a prefab 1 Answer
Physics gravity appears very weak 2 Answers
How to make telephone wires 1 Answer