1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Add object's own position for each collision to moveresult (#14608)

This commit is contained in:
grorp
2024-05-05 13:28:59 +02:00
committed by GitHub
parent d7f9da49eb
commit af8cb63292
6 changed files with 18 additions and 6 deletions

View File

@@ -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;