Hi all! I'm on a new project and i'm trying to figure out how to create a Basic Moving car in 3D i was looking at: - http://docs.unity3d.com/Manual/class-WheelCollider.html - http://docs.unity3d.com/ScriptReference/WheelCollider.html But I dont get to make a "realistic" car, the suspension es prety hard (Like the car was made of a solid block) and i dont get on how to make a basic gear box for the speed. Any hints on this subject would be really apreciated! Thanks in advance!
But how do i make the Car? This is how i have it I have an Empty Game Object (With the rigid body) that contains the car Body, As children of the body i have two grops, one with the 4 wheels, and another with 4 wheels colliders (At the positions of the wheels) How should i do to make the car move? Using the 4 wheelsColliders.addmotortorque ? I'l check the suspension damping now Thanks!
if you need an example, Unity has done a couple Example a : Car Tutorial (Contains full and complete things) http://u3d.as/content/unity-technologies/car-tutorial/1qU Example b : Sample assets http://forum.unity3d.com/threads/new-standard-assets-a-k-a-sample-assets-beta-release.223158/ If you'd just like simple code then this website will help you http://unitygameengine.blogspot.ca/2012/11/unity3d-creating-driveable-vehicle.html
I'm trying to make a car from scratch, and the last video it shows how to make it with some scripts that are from 2011 Any idea how do i say the connected rigid body to my wheels? and to wich wheels do i have to apply torque?
WheelColliders havent changed in years, and the basic principles still apply. You just have to parent your wheels to the body in the hierarchy view.
do i have to add some SpringJoint between the wheels and the car body so the car have a suspension? i'm playing with the wheel joint suspension and damping and i dont get the wheel to be less "static" i managed to get the car with the wheels rotating arround, and adding torque to the colliders for the car move, but its still like a car made of legos