- Home /
Translating in world space only on y axis?
I'm translating a car to simulate speed and it works fine except when the car goes uphill and gets in the air, it goes crazy and starts flying everywhere, I tried lowering the translation power while in mid air but it seems very unrealistic and not very fun. Basically I want the car to be able to jump off ramps and hills without flying everywhere. If I change translation to world space, rotating the car loses it's effect, so i was wondering if there is a way to turn the y translation non affectable by the car's y rotation during mid air. I thought about it a lot and searched around but I couldn't find a viable solution.
How about if you just stored the previous position and rotation. If the previous rotation was different to the current rotation, then set the y value to the previous position's y value.
Seeing your movement code will help get an accurate answer.
Your answer
Follow this Question
Related Questions
[Solved] Translating Camera on only X, Z axis on World Space, no matter what is the rotation 0 Answers
Uniform rotation - uniform lerp 1 Answer
Rotation math question: car movement on a cylinder 0 Answers
Why do grouped Terrain objects move together but don't rotate as one? 1 Answer
rotate the camera in the z axis 1 Answer