Skip to content

Commit

Permalink
Fix DistanceJoint type information
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 14, 2023
1 parent ba69350 commit 2aad15c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/physics/box2d/DistanceJoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/modules/physics/box2d/DistanceJoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class DistanceJoint : public Joint
{
public:

static love::Type type;

/**
* Creates a DistanceJoint connecting body1 to body2.
**/
Expand Down

0 comments on commit 2aad15c

Please sign in to comment.