Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarHumanoid.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-03-16 09:18:34 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-03-16 09:18:34 +1100
commitfd56b7ed9568b7887b474b1df9b6526f2869d1e4 (patch)
tree6233293cfe084a1339de6eb384f9e541c238b21b /source/game/StarHumanoid.hpp
parenta29c3e161648aef3b958fd76abdbe9e358e1bc9f (diff)
back rotateWithHead support
Diffstat (limited to 'source/game/StarHumanoid.hpp')
-rw-r--r--source/game/StarHumanoid.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/game/StarHumanoid.hpp b/source/game/StarHumanoid.hpp
index dc4f3d9..a3e9d19 100644
--- a/source/game/StarHumanoid.hpp
+++ b/source/game/StarHumanoid.hpp
@@ -178,6 +178,7 @@ public:
void setFacingDirection(Direction facingDirection);
void setMovingBackwards(bool movingBackwards);
void setHeadRotation(float headRotation);
+ void setBackRotatesWithHead(bool backRotatesWithHead);
void setRotation(float rotation);
void setScale(Vec2F scale);
@@ -382,6 +383,7 @@ private:
Maybe<String> m_dance;
Direction m_facingDirection;
bool m_movingBackwards;
+ bool m_backRotatesWithHead;
float m_headRotation;
float m_headRotationTarget;
float m_rotation;