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/clientobject.h | |
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/clientobject.h')
-rw-r--r-- | src/clientobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clientobject.h b/src/clientobject.h index c4e1a634b..83931e438 100644 --- a/src/clientobject.h +++ b/src/clientobject.h @@ -61,6 +61,7 @@ public: virtual bool getCollisionBox(aabb3f *toset){return false;} virtual bool collideWithObjects(){return false;} virtual v3f getPosition(){return v3f(0,0,0);} + virtual float getYaw() const {return 0;} virtual scene::ISceneNode *getSceneNode(){return NULL;} virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;} virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;} |