- Home /
Automatic Movement Script
I am creating a game for a German project that involves driving on the Autobahn. I want the car to move forwards along the Z axis at a constant speed but I don't know the script for it. Everything I find either gives me errors or causes it to move along the x and y as well. I don't think this will make a difference, but the camera is parented to the car.
Answer by AngryOldMan · Apr 16, 2011 at 12:00 AM
use transform.Translate and rather than just copying some script read the documentation and understand it, then you wont have these problems. It's called learning.
Your answer
![](https://koobas.hobune.stream/wayback/20220613123055im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
whats wrong with this script 1 Answer
How do I add a camera bounce effect every time the player lands? 0 Answers
Child of camera getting locked on position 0 Answers
how do you sway the camera based on sharp turns 0 Answers
How do I modify this to move the camera at the same time the player is moving? 3 Answers