]> git.localhorst.tv Git - blank.git/blobdiff - src/world/EntityState.hpp
more transform caching
[blank.git] / src / world / EntityState.hpp
index e93fffa6714d324990c349f1b43d2e13c63f5827..21b60dd0de105ee27a9b25ece204896f3c89d2dd 100644 (file)
@@ -16,12 +16,15 @@ struct EntityState {
        glm::vec3 velocity;
 
        glm::quat orient;
-       glm::vec3 ang_vel;
+       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 {