mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Add ObjectRef:getvelocity(), ObjectRef:setyaw() and ObjectRef:getyaw()
This commit is contained in:
parent
2445cbbbdc
commit
56f55ab1af
4 changed files with 61 additions and 0 deletions
|
@ -1698,6 +1698,11 @@ void LuaEntitySAO::setVelocity(v3f velocity)
|
|||
m_velocity = velocity;
|
||||
}
|
||||
|
||||
v3f LuaEntitySAO::getVelocity()
|
||||
{
|
||||
return m_velocity;
|
||||
}
|
||||
|
||||
void LuaEntitySAO::setAcceleration(v3f acceleration)
|
||||
{
|
||||
m_acceleration = acceleration;
|
||||
|
@ -1708,6 +1713,16 @@ v3f LuaEntitySAO::getAcceleration()
|
|||
return m_acceleration;
|
||||
}
|
||||
|
||||
void LuaEntitySAO::setYaw(float yaw)
|
||||
{
|
||||
m_yaw = yaw;
|
||||
}
|
||||
|
||||
float LuaEntitySAO::getYaw()
|
||||
{
|
||||
return m_yaw;
|
||||
}
|
||||
|
||||
void LuaEntitySAO::setTextureMod(const std::string &mod)
|
||||
{
|
||||
std::ostringstream os(std::ios::binary);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue