- Home /
Question by
siddharth3322 · Mar 07, 2019 at 02:53 PM ·
physicsrigidbodyvelocitygravityboxcollider
Apply Gravity to Car Physics
I was moving a car in the city area within my game. Moving the car by applying continuous velocity:
appliedSpeed += Time.deltaTime * 10f;
appliedSpeed = Mathf.Min(appliedSpeed, speed);
myRigidbody.velocity = transform.forward * appliedSpeed;
Now as an issue, gravity is not get affected. Though Physics gravity is set to -9.8 within settings. My player car rigidbody inspector values, I have shown in the below image.
At present, the player car can able to run above the water area too. I don't want that, naturally, it should require to fall into the water. I want this implementation, what should I require to do?
gravity-issue-unity.png
(299.7 kB)
Comment