- Home /
Arcade car phisics
Hello everyone! I try to make a race game with physic car style like nintendo, without flip and almost without drifting. You can watch a [simple here.][1] [1]: https://www.youtube.com/watch?v=aNmVIDE0SWg
But i don't know how can get it, physic in car tutorial not fit here, i need something different. I think, maybe don't use wheel collider and try some other way fo this? I would be glad if somebody have any ideas!
Sorry for my english)
You probably want to use a character controller then, or just write your own script where the object is moving in its transform.forward at a speed of acceleration, the just turn the object with left/right controls, change acceleration with up/down controls.
Actually, there is a script in the Unity Scripting Reference : http://docs.unity3d.com/Documentation/ScriptReference/Input.GetAxis.html
Thanks for the help!) It almost what i need!) Please, just one question, how can i get unflipping car, maybe necessary fixed one axis? and how to off the conrol car, when it in the air?
Answer by lukidog · Jan 15, 2013 at 05:04 PM
Although im not real clear on what you are asking, it sounds like you may want to look at either freezing an axis or writing a script to lock the rotation to a certain angle.
If your object has a rigid body you can lock it on an axis right from the inspector. If you are writing some code for it id look at Quaternian.Euler
Or you could like a lot of games, use a reset button. Make an input key, grab the current position and reset the zyx angles.
Your answer
Follow this Question
Related Questions
How do I make laps in a racing game? 5 Answers
Speedometer 1 Answer
Racing game basic javascript question 2 Answers
AI Car Problem 1 Answer
3d car race 0 Answers