D
D
Dimproks2019-04-18 21:58:55
C++ / C#
Dimproks, 2019-04-18 21:58:55

How to measure the distance traveled by a Unity car?

Good!
Help solve the problem. I need a variable to store the distance that the car has traveled (the car on wheelColliders).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Pogrebnyak, 2019-04-18
@Dimproks

1. Speed ​​multiplied by time.
2. Vector3.Distance(point1, point2);

D
Dimproks, 2019-04-18
@Dimproks

And in method 1, where can I find the speed of the car at the moment?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question