X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntityState.hpp;h=21b60dd0de105ee27a9b25ece204896f3c89d2dd;hb=0d580658b896dfec07466c31ae4847455724ee95;hp=8f74114cb7de0ba2d681b362385698b4d31c77b8;hpb=cf5ce8220483bb062740eeaedde6474928fd5e0e;p=blank.git diff --git a/src/world/EntityState.hpp b/src/world/EntityState.hpp index 8f74114..21b60dd 100644 --- a/src/world/EntityState.hpp +++ b/src/world/EntityState.hpp @@ -16,15 +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; - - /// do an integration step of dt milliseconds - void Update(int dt) 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 {