X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntityState.hpp;h=21b60dd0de105ee27a9b25ece204896f3c89d2dd;hb=4c34ddd7eeaa3cb71fc90bf76a0cd395682add66;hp=d3e34e55c644e48c5cf11f0c032ffa9e29fd52cb;hpb=808d9dbd3ab101c0ff10697e36ef2c45a23b6ef5;p=blank.git diff --git a/src/world/EntityState.hpp b/src/world/EntityState.hpp index d3e34e5..21b60dd 100644 --- a/src/world/EntityState.hpp +++ b/src/world/EntityState.hpp @@ -16,11 +16,15 @@ struct EntityState { glm::vec3 velocity; glm::quat orient; + float pitch; + float yaw; EntityState(); /// make sure block_pos is within chunk bounds void AdjustPosition() noexcept; + /// make sure pitch and yaw are normalized + void AdjustHeading() noexcept; /// get a position vector relative to the (0,0,0) chunk glm::vec3 AbsolutePosition() const noexcept {