mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Remove unused pos_max_d
This commit is contained in:
parent
9a44d835d6
commit
c00129360e
11 changed files with 29 additions and 79 deletions
|
@ -155,12 +155,11 @@ void LuaEntitySAO::step(float dtime, bool send_recommended)
|
|||
aabb3f box = m_prop.collisionbox;
|
||||
box.MinEdge *= BS;
|
||||
box.MaxEdge *= BS;
|
||||
f32 pos_max_d = BS*0.25; // Distance per iteration
|
||||
v3f p_pos = m_base_position;
|
||||
v3f p_velocity = m_velocity;
|
||||
v3f p_acceleration = m_acceleration;
|
||||
moveresult = collisionMoveSimple(m_env, m_env->getGameDef(),
|
||||
pos_max_d, box, m_prop.stepheight, dtime,
|
||||
box, m_prop.stepheight, dtime,
|
||||
&p_pos, &p_velocity, p_acceleration,
|
||||
this, m_prop.collideWithObjects);
|
||||
moveresult_p = &moveresult;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue