forked from qml-box2d/qml-box2d
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up a lot of duplicate code in the joints
All joints stored a pointer to the Box2D joint, which has now been moved up to the Box2DJoint base class. As a result the cleanup code and part of the creation code could be moved up as well. Some common bugs were fixed in the process: * Missing 'return' in Box2DDistanceJoint::dampingRatio * Missing 'return' in Box2DFrictionJoint::localAnchorA * Missing 'return' in Box2DFrictionJoint::localAnchorB * Missing 'return' in Box2DPulleyJoint::groundAnchorA * Missing 'return' in Box2DPulleyJoint::groundAnchorB * Missing 'return' in Box2DPulleyJoint::localAnchorA * Missing 'return' in Box2DPulleyJoint::localAnchorB * Missing y-inversion in Box2DFrictionJoint::localAnchorA * Missing y-inversion in Box2DFrictionJoint::localAnchorB * Missing y-inversion in Box2DMotorJoint::linearOffset * Missing y-inversion in Box2DPrismaticJoint::localAnchorA * Missing y-inversion in Box2DPrismaticJoint::localAnchorB * Missing y-inversion in Box2DPulleyJoint::groundAnchorA * Missing y-inversion in Box2DPulleyJoint::groundAnchorB * Missing y-inversion in Box2DPulleyJoint::localAnchorA * Missing y-inversion in Box2DPulleyJoint::localAnchorB * Missing y-inversion in Box2DRevoluteJoint::localAnchorA * Missing y-inversion in Box2DRevoluteJoint::localAnchorB * Missing y-inversion in Box2DRopeJoint::localAnchorA * Missing y-inversion in Box2DRopeJoint::localAnchorB * Missing y-inversion in Box2DWheelJoint::localAnchorA * Missing y-inversion in Box2DWheelJoint::localAnchorB * Missing y-inversion in Box2DWheelJoint::localAxisA
- Loading branch information
Showing
24 changed files
with
454 additions
and
721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.