- Home /
Control car throttle Input based on distance
Hello,
I want to make a chase car to follow another car based on distance.i calculated steer input and works good. How can i control throttle Input based on distance.for example if chase car is farther from main car throttle Input be more and if distance is lesser than 5 meter just follows the main car.
Thanks
Comment
Your answer
Follow this Question
Related Questions
I want UI to be displayed when shifting gears. 0 Answers
Unity 2D Car Side Scroller question. 1 Answer
Car braking in mobile input 0 Answers
Collision Car Sensors 1 Answer
UGUI Unity5.6 CanvasRenderer vertex define has no uv1 ??? 1 Answer