mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Some destructors in love.physics were non-virtual.
This commit is contained in:
@@ -75,7 +75,7 @@ namespace box2d
|
|||||||
**/
|
**/
|
||||||
Body(World * world, b2Vec2 p, float m, float i);
|
Body(World * world, b2Vec2 p, float m, float i);
|
||||||
|
|
||||||
~Body();
|
virtual ~Body();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current x-position of the Body.
|
* Gets the current x-position of the Body.
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ namespace box2d
|
|||||||
**/
|
**/
|
||||||
Contact(World * world, const b2ContactPoint * point);
|
Contact(World * world, const b2ContactPoint * point);
|
||||||
|
|
||||||
~Contact();
|
virtual ~Contact();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the position of the Contact.
|
* Gets the position of the Contact.
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ namespace box2d
|
|||||||
**/
|
**/
|
||||||
World(b2AABB aabb, b2Vec2 gravity, bool sleep);
|
World(b2AABB aabb, b2Vec2 gravity, bool sleep);
|
||||||
|
|
||||||
~World();
|
virtual ~World();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates everything in the world one timestep.
|
* Updates everything in the world one timestep.
|
||||||
|
|||||||
Reference in New Issue
Block a user