1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Remove redundant CollisionInfo::plane

This commit is contained in:
sfan5 2024-11-08 15:03:48 +01:00
parent f916f5de78
commit 9a44d835d6
3 changed files with 3 additions and 7 deletions

View file

@ -12,13 +12,13 @@ class IGameDef;
class Environment;
class ActiveObject;
enum CollisionType
enum CollisionType : u8
{
COLLISION_NODE,
COLLISION_OBJECT,
};
enum CollisionAxis
enum CollisionAxis : s8
{
COLLISION_AXIS_NONE = -1,
COLLISION_AXIS_X,
@ -37,9 +37,6 @@ struct CollisionInfo
v3f new_pos;
v3f old_speed;
v3f new_speed;
// FIXME: this is equivalent to `axis`, why does it exist?
int plane = -1;
};
struct collisionMoveResult