1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Expose collided objects in moveresult

closes #9787
This commit is contained in:
sfan5 2020-04-26 22:52:00 +02:00
parent cb159f8d8a
commit b6b80f55c8
4 changed files with 31 additions and 14 deletions

View file

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