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
b35adfbd2d
commit
23adfff4fe
4 changed files with 26 additions and 10 deletions
|
@ -1366,9 +1366,11 @@ void LuaEntityCAO::processMessage(const std::string &data)
|
|||
m_position = readV3F1000(is);
|
||||
// yaw
|
||||
m_yaw = readF1000(is);
|
||||
// is_end_position (for interpolation)
|
||||
bool is_end_position = readU8(is);
|
||||
|
||||
if(do_interpolate)
|
||||
pos_translator.update(m_position);
|
||||
pos_translator.update(m_position, is_end_position);
|
||||
else
|
||||
pos_translator.init(m_position);
|
||||
updateNodePos();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue