1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +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

@@ -49,6 +49,7 @@ struct CollisionInfo
CollisionAxis axis = COLLISION_AXIS_NONE;
v3s16 node_p = v3s16(-32768,-32768,-32768); // COLLISION_NODE
ActiveObject *object = nullptr; // COLLISION_OBJECT
v3f new_pos;
v3f old_speed;
v3f new_speed;
int plane = -1;