So after learning Dist, I expected the same result… but I got an oddity instead
Logged distance
tower.cpp
tower.h
So after learning Dist, I expected the same result… but I got an oddity instead
Logged distance
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:
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.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.