- Home /
Objects should simulate the real world like FPC
How do i make my car simulate physics when it hits a tree or another car. For eg. say i have my car and the enemy car I have added the Rigidbody component to my car, Box colliders to both the cars. When i hit the enemy car, I want the real world physics to take place, taking into account the velocity, hit area etc. I am new to unity, Can someone please help. Also, am i using the right collider(box collider) for a car?
Answer by ScroodgeM · Jul 17, 2012 at 01:38 PM
- first you need is physic materials to repeat real world's materials for car's surfaces, road, tree and others
then, for real physics you need a wheel colliders for car (it's easy to move a real car in front-back direction, but very hard in left-right)
also you need customise wheel colliders for your situation
and now, you should write some scripts to control cars - like a motorized wheels, turning wheels, speeds and accelerations control etc
http://u3d.as/content/unity-technologies/car-tutorial/1qU
did you try this?