diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-21 11:15:15 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:49 +0200 |
commit | 0ce0c8fcfba655c8db5f53ce8e3ab7adfa59768a (patch) | |
tree | 7491e7b68e0cd4c43a19de54b7352d4d9e0de778 /src/content_sao.h | |
parent | 811ac5ac3ae6de6ee152f724aaf392ac73c3ed40 (diff) | |
download | minetest-0ce0c8fcfba655c8db5f53ce8e3ab7adfa59768a.tar.gz minetest-0ce0c8fcfba655c8db5f53ce8e3ab7adfa59768a.tar.bz2 minetest-0ce0c8fcfba655c8db5f53ce8e3ab7adfa59768a.zip |
Improve LuaEntity velocity/acceleration handling (by kahrl); implement staticdata interface to Lua
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index cd7474960..04d33647e 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -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; |