mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add object's own position for each collision to moveresult (#14608)
This commit is contained in:
parent
d7f9da49eb
commit
af8cb63292
6 changed files with 18 additions and 6 deletions
|
@ -510,6 +510,7 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef,
|
|||
|
||||
info.node_p = nearest_info.position;
|
||||
info.object = nearest_info.obj;
|
||||
info.new_pos = *pos_f;
|
||||
info.old_speed = *speed_f;
|
||||
info.plane = nearest_collided;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue