diff options
author | Pedro Gimeno <pgimeno@users.noreply.notabug.org> | 2019-08-09 14:21:17 +0530 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2019-08-31 19:05:53 +0200 |
commit | 9543b849703ba2e8edc0bd4696ccfb9e7888c293 (patch) | |
tree | 4a56afe90fde5288c13677932a238ec847f7d9f5 /src/client/content_cao.h | |
parent | 049256573b6fc379ab4cd1f867f33504de6abeee (diff) | |
download | minetest-9543b849703ba2e8edc0bd4696ccfb9e7888c293.tar.gz minetest-9543b849703ba2e8edc0bd4696ccfb9e7888c293.tar.bz2 minetest-9543b849703ba2e8edc0bd4696ccfb9e7888c293.zip |
Fix rotation of attached particlespawner
Co-authored-by: ANAND <ClobberXD@gmail.com>
Diffstat (limited to 'src/client/content_cao.h')
-rw-r--r-- | src/client/content_cao.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/client/content_cao.h b/src/client/content_cao.h index aef1f1296..3a071101f 100644 --- a/src/client/content_cao.h +++ b/src/client/content_cao.h @@ -154,12 +154,9 @@ public: virtual bool getSelectionBox(aabb3f *toset) const; - v3f getPosition(); + const v3f getPosition() const; - inline const v3f &getRotation() - { - return m_rotation; - } + inline const v3f &getRotation() const { return m_rotation; } const bool isImmortal(); @@ -180,6 +177,12 @@ public: return m_matrixnode->getRelativeTransformationMatrix(); } + inline const core::matrix4 &getAbsolutePosRotMatrix() const + { + assert(m_matrixnode); + return m_matrixnode->getAbsoluteTransformation(); + } + inline f32 getStepHeight() const { return m_prop.stepheight; |