1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 21:35:21 +02:00

Improve LuaEntity velocity/acceleration handling (by kahrl); implement staticdata interface to Lua

This commit is contained in:
Perttu Ahola
2011-11-21 11:15:15 +02:00
parent 811ac5ac3a
commit 0ce0c8fcfb
8 changed files with 234 additions and 79 deletions

View File

@@ -216,6 +216,8 @@ public:
void setPos(v3f pos);
void moveTo(v3f pos, bool continuous);
float getMinimumSavedMovement();
void setVelocity(v3f velocity);
void setAcceleration(v3f acceleration);
private:
void sendPosition(bool do_interpolate, bool is_movement_end);
@@ -224,6 +226,8 @@ private:
bool m_registered;
struct LuaEntityProperties *m_prop;
v3f m_velocity;
v3f m_acceleration;
float m_yaw;
float m_last_sent_yaw;
v3f m_last_sent_position;