love.physics: simplify some internal bookkeeping code

This commit is contained in:
Sasha Szpakowski
2023-10-01 15:55:23 -03:00
parent dbc7d7f3ca
commit b1609ed83b
9 changed files with 60 additions and 137 deletions
+2 -11
View File
@@ -39,16 +39,6 @@ namespace box2d
class Body;
class World;
/**
* This struct is stored in a void pointer in the Box2D Joint class. For now, all
* we need is a Lua reference to arbitrary data, but we might need more later.
**/
struct jointudata
{
// Reference to arbitrary data.
Reference *ref = nullptr;
};
/**
* A Joint acts as positioning constraints on Bodies.
* A Joint can be used to prevent Bodies from going to
@@ -140,7 +130,8 @@ protected:
World *world;
jointudata *udata;
// Reference to arbitrary data.
Reference* ref = nullptr;
private: