- Home /
This question was
closed Jul 17, 2021 at 08:53 AM by
guserd for the following reason:
Other
there's something strange about the car
hello everyone, i'm new to unity, when i try to drive the car forward, it runs fine, but when the other way around, the car seems to want to flip over, i just want the car to go backwards, you can see this picture:

if (Input.GetKey(KeyCode.UpArrow))
{
rigidbody.AddForce(new Vector3(transform.forward.x, 0, transform.forward.z) * 5, ForceMode.VelocityChange);
}
if (Input.GetKey(KeyCode.DownArrow))
{
rigidbody.AddForce(new Vector3(transform.forward.x, 0, transform.forward.z) * -5, ForceMode.VelocityChange);
}
when i press down arrow, the car does not reverse, but wants to overturn, please help thank you
Comment
Follow this Question
Related Questions
Vehicle issues. 0 Answers
Rotate Sprite based on Car Velocity Non GUI 3D Speedometer 0 Answers
Car Front Tires rotation clamped between 270° - 90° 0 Answers
Rotate Object only on player input 0 Answers
Car collision impact with object 1 Answer