hello nathan here. I'm still only a REAL noob at this scripting stuff and need things explained to me.
i don't know how to make my mesh collider (for my tank) to translate backwards on the Z axis?
heres my code:
i haven't linked my speed variable to my script yet. but my problem is, How do i make my tank go backwards? when i push forwards it goes forwards, and when i push back it goes forwards?
any help is truly appreciated. I'm also taking a look at the racing can tutorial.
Take out the if statement completely. It is not needed as you are only checking if you're wanting to move in the vertical direction, not which direction.
Input.GetAxis("Vertical") returns a value from -1 to 1, so multiplied by the speed will allow your mesh to move forwards and backwards.
Hope this helped
answered Jul 14 '10 at 10:28 AM