Calculate the area of a gameobject that moved in 3d space on the x-z plane in Unity?

Viewed 19

I want to move my player on the flat ground but when I reach a certain position, I want to know the amount of area the player has covered on the ground.

1 Answers

Try Vector3.Distance() - calculates the distance between 2 points (I assume you are looking for that since there is not enough information provided to calculate an area)

Related