How do I calculate the total distance traveled walking around environments?
I need to calculate the total distance my pawn moves around an environment, not just from point A to point B. I want to constantly subtract a variable as my pawn moves a certain distance going forward / backwards / left / right. Is there a way to keep updating location and track this? Any help/direction is appreciated, Thanks!
(comments are locked)

Get the velocity at every frame and then calculate the distance traveled with velocity/speed * time. Velocity/Speed should be easily accessible in the player's movement component. edit: I meant velocity and/or speed * time, not velocity divided by speed times time. edit 2: APawn::GetVelocity().Size() * DeltaSeconds is what you want in your Tick function.
(comments are locked)

Follow this question
Once you sign in you will be able to subscribe for any updates here