From 2aad15c865da4f0cce061c479100341430800f52 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 14 Oct 2023 16:42:31 -0300 Subject: [PATCH] Fix DistanceJoint type information --- src/modules/physics/box2d/DistanceJoint.cpp | 2 ++ src/modules/physics/box2d/DistanceJoint.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/modules/physics/box2d/DistanceJoint.cpp b/src/modules/physics/box2d/DistanceJoint.cpp index d85b9fa3c..0ed115b20 100644 --- a/src/modules/physics/box2d/DistanceJoint.cpp +++ b/src/modules/physics/box2d/DistanceJoint.cpp @@ -32,6 +32,8 @@ namespace physics 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) : Joint(body1, body2) , joint(NULL) diff --git a/src/modules/physics/box2d/DistanceJoint.h b/src/modules/physics/box2d/DistanceJoint.h index 14060dee0..382efbbf6 100644 --- a/src/modules/physics/box2d/DistanceJoint.h +++ b/src/modules/physics/box2d/DistanceJoint.h @@ -39,6 +39,8 @@ class DistanceJoint : public Joint { public: + static love::Type type; + /** * Creates a DistanceJoint connecting body1 to body2. **/