Unsure if this is supposed to be normal FVector::Dist() behavior

So after learning Dist, I expected the same result… but I got an oddity instead

Logged distance
image

tower.cpp

tower.h

I think it may just an issue where the UE_LOG macro cant handle implicit conversion from float to Integer properly.

instead of using %i, use %f.

I’ve been using this site to help me know which formattign to use:

2 Likes

You’re absolutely right, late night coding thoughts aren’t the straightest in the world!

Using %f did make things run as I expected. Thanks for your input.
image

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms