void PlayerController::UpdatePlayer() noexcept {
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();