mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-10 19:32:10 +00:00
Fix rotation of attached particlespawner
Co-authored-by: ANAND <ClobberXD@gmail.com>
This commit is contained in:
parent
049256573b
commit
9543b84970
5 changed files with 44 additions and 41 deletions
|
@ -154,12 +154,9 @@ public:
|
|||
|
||||
virtual bool getSelectionBox(aabb3f *toset) const;
|
||||
|
||||
v3f getPosition();
|
||||
const v3f getPosition() const;
|
||||
|
||||
inline const v3f &getRotation()
|
||||
{
|
||||
return m_rotation;
|
||||
}
|
||||
inline const v3f &getRotation() const { return m_rotation; }
|
||||
|
||||
const bool isImmortal();
|
||||
|
||||
|
@ -180,6 +177,12 @@ public:
|
|||
return m_matrixnode->getRelativeTransformationMatrix();
|
||||
}
|
||||
|
||||
inline const core::matrix4 &getAbsolutePosRotMatrix() const
|
||||
{
|
||||
assert(m_matrixnode);
|
||||
return m_matrixnode->getAbsoluteTransformation();
|
||||
}
|
||||
|
||||
inline f32 getStepHeight() const
|
||||
{
|
||||
return m_prop.stepheight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue