mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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.
This commit is contained in:
parent
4a0a6723af
commit
681d127ff1
5 changed files with 37 additions and 10 deletions
|
@ -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;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue