mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add support for setting stepheight for entities
This commit is contained in:
parent
ff7c380d0e
commit
251e3e01c7
7 changed files with 12 additions and 5 deletions
|
@ -1150,12 +1150,11 @@ public:
|
|||
box.MaxEdge *= BS;
|
||||
collisionMoveResult moveresult;
|
||||
f32 pos_max_d = BS*0.125; // Distance per iteration
|
||||
f32 stepheight = 0;
|
||||
v3f p_pos = m_position;
|
||||
v3f p_velocity = m_velocity;
|
||||
v3f p_acceleration = m_acceleration;
|
||||
moveresult = collisionMoveSimple(env,env->getGameDef(),
|
||||
pos_max_d, box, stepheight, dtime,
|
||||
pos_max_d, box, m_prop.stepheight, dtime,
|
||||
p_pos, p_velocity, p_acceleration,
|
||||
this, m_prop.collideWithObjects);
|
||||
// Apply results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue