Is there anybody tried to implement the car script to the real racing game (with opponents, speed, position and gear indicator,etc) ? I have several problems:
-
How to make the car stops completely? I have tried the following:
- Changed the “throttle” and “steer” variables values to 0. The result: The user was unable to control the car, but the car still moved.
-
Added “rigidbody.drag = 1.5;”. The result: The car did stop, but the main camera made strange movements (moved from one side of the car to another).
-
Added “rigidbody.velocity = Vector3.zero;”. The result: The car did stop, but the main camera changed its view, viewing the car with 1st person view (it is supposed to be 3rd person view as in the tutorial).
-
How to find out which speed and gear the car is currently on? The top speed does not change in the game.
Please help me!