X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=43cdb53613ec2660603204128f9fffc91cf24839;hb=b9a63fedbc65e8659c43f7fa381017c0c70a48da;hp=96386195e57803c4aa8fcd498072caa229df768f;hpb=d38be21d103052761505d58a6d13e30a896dde01;p=blank.git diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index 9638619..43cdb53 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -83,9 +83,10 @@ void PlayerController::Invalidate() noexcept { } void PlayerController::UpdatePlayer() noexcept { - constexpr float max_vel = 0.005f; + constexpr float max_vel = 5.0f; // in m/s if (dirty) { - player.GetEntity().Orientation(glm::quat(glm::vec3(pitch, yaw, 0.0f))); + player.GetEntity().Orientation(glm::quat(glm::vec3(0.0f, yaw, 0.0f))); + player.GetEntity().GetModel().EyesState().orientation = glm::quat(glm::vec3(pitch, 0.0f, 0.0f)); player.GetEntity().TargetVelocity(glm::rotateY(move_dir * max_vel, yaw)); Ray aim = player.Aim();