From 681d127ff1d288f4c3123a05f71ef15a6c549b5d Mon Sep 17 00:00:00 2001 From: orwell96 Date: Mon, 24 Oct 2016 19:56:27 +0200 Subject: 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. --- src/content_cao.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/content_cao.h') 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(); -- cgit v1.2.3