A
A
Alex Blinov2019-06-06 13:53:25
C++ / C#
Alex Blinov, 2019-06-06 13:53:25

How to move forward in the direction of an object?

How to make the tank move in its direction when the button is already pressed?5cf8f0a05404e798677611.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Ivanov, 2019-06-06
@keksmr

transform.Translate
+
Global axis Vector3.forward. If you need a local "forward" axis of the object itself - write transform.forward.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question