mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Add ObjectRef:getvelocity(), ObjectRef:setyaw() and ObjectRef:getyaw()
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user