X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fworld.cpp;h=dfcf7217f99372d1ea4ada491d55ffa409ec2336;hb=ee3fee8a4bf3e77b17c940fb8f3daf30ede46cce;hp=4d01af394a6d37e386cec343449d1f03ae3e0d82;hpb=5c0d6397cfdec3a284a6560c3c6b3acbcd9f9331;p=blank.git diff --git a/src/world/world.cpp b/src/world/world.cpp index 4d01af3..dfcf721 100644 --- a/src/world/world.cpp +++ b/src/world/world.cpp @@ -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