Browse Source

Fix DistanceJoint type information

Sasha Szpakowski 1 year ago
parent
commit
2aad15c865

+ 2 - 0
src/modules/physics/box2d/DistanceJoint.cpp

@@ -32,6 +32,8 @@ namespace physics
 namespace box2d
 namespace box2d
 {
 {
 
 
+love::Type DistanceJoint::type("DistanceJoint", &Joint::type);
+
 DistanceJoint::DistanceJoint(Body *body1, Body *body2, float x1, float y1, float x2, float y2, bool collideConnected)
 DistanceJoint::DistanceJoint(Body *body1, Body *body2, float x1, float y1, float x2, float y2, bool collideConnected)
 	: Joint(body1, body2)
 	: Joint(body1, body2)
 	, joint(NULL)
 	, joint(NULL)

+ 2 - 0
src/modules/physics/box2d/DistanceJoint.h

@@ -39,6 +39,8 @@ class DistanceJoint : public Joint
 {
 {
 public:
 public:
 
 
+	static love::Type type;
+
 	/**
 	/**
 	 * Creates a DistanceJoint connecting body1 to body2.
 	 * Creates a DistanceJoint connecting body1 to body2.
 	 **/
 	 **/