mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Scripting WIP
This commit is contained in:
parent
23adfff4fe
commit
38944467d3
9 changed files with 59 additions and 29 deletions
|
@ -1368,9 +1368,11 @@ void LuaEntityCAO::processMessage(const std::string &data)
|
|||
m_yaw = readF1000(is);
|
||||
// is_end_position (for interpolation)
|
||||
bool is_end_position = readU8(is);
|
||||
// update_interval
|
||||
float update_interval = readF1000(is);
|
||||
|
||||
if(do_interpolate)
|
||||
pos_translator.update(m_position, is_end_position);
|
||||
pos_translator.update(m_position, is_end_position, update_interval);
|
||||
else
|
||||
pos_translator.init(m_position);
|
||||
updateNodePos();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue