]> git.localhorst.tv Git - blank.git/blobdiff - src/world/world.cpp
use 60° as max head yaw
[blank.git] / src / world / world.cpp
index 4d01af394a6d37e386cec343449d1f03ae3e0d82..dfcf7217f99372d1ea4ada491d55ffa409ec2336 100644 (file)
@@ -220,8 +220,8 @@ void Entity::OrientBody(float dt) noexcept {
 }
 
 void Entity::OrientHead(float dt) noexcept {
-       // maximum yaw of head (90°)
-       constexpr float max_head_yaw = PI_0p5;
+       // maximum yaw of head (60°)
+       constexpr float max_head_yaw = PI / 3.0f;
        // use local Y as up
        const glm::vec3 up(model_transform[1]);
        // if yaw is bigger than max, rotate the body to accomodate