mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
love.physics: simplify some internal bookkeeping code
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user