Skip to content

Commit

Permalink
fix joint def order
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto committed Dec 29, 2023
1 parent 11ffd4b commit 04b136d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/box2d/joint_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ typedef struct b2RevoluteJointDef
/// A flag to enable the joint motor.
bool enableMotor;

/// The desired motor speed. Usually in radians per second.
float motorSpeed;

/// The maximum motor torque used to achieve the desired motor speed.
/// Usually in N-m.
float maxMotorTorque;

/// The desired motor speed. Usually in radians per second.
float motorSpeed;

/// Scale the debug draw
float drawSize;

Expand All @@ -257,12 +257,12 @@ static const b2RevoluteJointDef b2_defaultRevoluteJointDef = {
{0.0f, 0.0f}, // localAnchorA
{0.0f, 0.0f}, // localAnchorB
0.0f, // referenceAngle
false, // enableLimit
0.0f, // lowerAngle
0.0f, // upperAngle
false, // enableMotor
0.0f, // maxMotorTorque
0.0f, // motorSpeed
false, // enableLimit
false, // enableMotor
0.25f, // drawSize
false, // collideConnected
};
Expand Down

0 comments on commit 04b136d

Please sign in to comment.