- Home /
Question by
brownbair · Jan 19, 2019 at 05:07 PM ·
caraccelerationstandard-assets
Auto Accelerate Standard Assets Car?
Hi - I have very little coding experience but I was hoping to find a simple answer to getting Unity's standard assets car to auto-accelerate 4 seconds after the scene is started. Any and all help is MUCH appreciated! =) Thank you for your time!
Comment
Answer by goldcloud144 · Sep 05, 2020 at 05:29 AM
You can use something like this code in CarUserControl.cs :
float h = Input.acceleration.x;
m_Car.Move(h, 1, 0, handbrake);
Makes the Car move forward automatically.
Your answer
Follow this Question
Related Questions
assign waypointcircuit to waypointprogresstracker at runtime 1 Answer
How to reach a specific max speed with AddForce() ? 1 Answer
Car Accelerate Over Time. (JavaScript and RigidBody) 2 Answers
how do i gradually speed up a car 1 Answer
Car is not moving Straight with Acceleration Button Pressed 2 Answers