summaryrefslogtreecommitdiff
path: root/src/content_cao.h
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-10-24 19:56:27 +0200
committerparamat <mat.gregory@virginmedia.com>2016-11-18 06:18:54 +0000
commit681d127ff1d288f4c3123a05f71ef15a6c549b5d (patch)
tree2101a5bcdcd1680ffebd797de5c7c509c04f34b0 /src/content_cao.h
parent4a0a6723afc5c5a14acd7cd833aea33cb53ac618 (diff)
downloadminetest-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.h')
-rw-r--r--src/content_cao.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content_cao.h b/src/content_cao.h
index 5b3471814..a158e8296 100644
--- a/src/content_cao.h
+++ b/src/content_cao.h
@@ -136,6 +136,10 @@ public:
aabb3f *getSelectionBox();
v3f getPosition();
+ inline float getYaw() const
+ {
+ return m_yaw;
+ }
scene::ISceneNode *getSceneNode();