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:
@@ -41,16 +41,6 @@ class World;
|
||||
class Shape;
|
||||
class Fixture;
|
||||
|
||||
/**
|
||||
* This struct is stored in a void pointer in the Box2D Body class. For now, all
|
||||
* we need is a Lua reference to arbitrary data, but we might need more later.
|
||||
**/
|
||||
struct bodyudata
|
||||
{
|
||||
// Reference to arbitrary data.
|
||||
Reference *ref = nullptr;
|
||||
};
|
||||
|
||||
/**
|
||||
* A Body is an entity which has position and orientation
|
||||
* in world space. A Body does have collision geometry
|
||||
@@ -441,7 +431,8 @@ private:
|
||||
// unowned?
|
||||
World *world;
|
||||
|
||||
bodyudata *udata;
|
||||
// Reference to arbitrary data.
|
||||
Reference* ref = nullptr;
|
||||
|
||||
}; // Body
|
||||
|
||||
|
||||
Reference in New Issue
Block a user