diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-10-24 19:56:27 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-11-18 06:18:54 +0000 |
commit | 681d127ff1d288f4c3123a05f71ef15a6c549b5d (patch) | |
tree | 2101a5bcdcd1680ffebd797de5c7c509c04f34b0 /src/content_cao.cpp | |
parent | 4a0a6723afc5c5a14acd7cd833aea33cb53ac618 (diff) | |
download | minetest-681d127ff1d288f4c3123a05f71ef15a6c549b5d.tar.gz minetest-681d127ff1d288f4c3123a05f71ef15a6c549b5d.tar.bz2 minetest-681d127ff1d288f4c3123a05f71ef15a6c549b5d.zip |
Particles: Make attached particle spawners respect the parent's yaw
Position, velocity and acceleration vectors of particles are rotated
by the yaw of the parent object so that they are truly relative to it.
Clarify new attached particle spawner behavior in lua_api.txt.
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r-- | src/content_cao.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 88ed43a8c..6b35d5881 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -313,7 +313,8 @@ public: {return &m_selection_box;} v3f getPosition() {return m_position;} - + inline float getYaw() const + {return 0;} std::string infoText() {return m_infotext;} |