X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworld%2Fworld.cpp;h=937203190ff1b3879b64a5339f5e540b222e3ff8;hb=4fbf5a3c1b0e530706023f5fc4be2f68d30ea645;hp=a17b0cb1f6e2a19f64676f5b575f8f2c11cca8ee;hpb=0d580658b896dfec07466c31ae4847455724ee95;p=blank.git diff --git a/src/world/world.cpp b/src/world/world.cpp index a17b0cb..9372031 100644 --- a/src/world/world.cpp +++ b/src/world/world.cpp @@ -9,6 +9,8 @@ #include "EntityCollision.hpp" #include "WorldCollision.hpp" #include "../app/Assets.hpp" +#include "../geometry/const.hpp" +#include "../geometry/distance.hpp" #include "../graphics/Format.hpp" #include "../graphics/Viewport.hpp" @@ -204,8 +206,8 @@ void Entity::OrientBody(float dt) noexcept { std::cout << "forward: " << forward << std::endl; std::cout << "facing: " << facing << std::endl; std::cout << "direction: " << direction << std::endl; - std::cout << "difference: " << rad2deg(relative_difference) << "°" << std::endl; - std::cout << "correction: " << rad2deg(correction) << "°" << std::endl; + std::cout << "difference: " << glm::degrees(relative_difference) << "°" << std::endl; + std::cout << "correction: " << glm::degrees(correction) << "°" << std::endl; std::cout << std::endl; } // now rotate body by correction and head by -correction