forge2d icon indicating copy to clipboard operation
forge2d copied to clipboard

refactor!: removed wrapper get and set methods for GearJoint.ratio

Open alestiago opened this issue 1 year ago • 0 comments

Description

Removes setRatio and getRatio which were only wrapping around ratio.

// Before
gearJoint.setRatio(0.2)
geatJoint.getRatio() // 0.2

// After
geatJoint.ratio = 0.2
geatJoint.ratio; // 0.2

Checklist

  • [X] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • [X] I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • [X] I have updated/added tests for ALL new/updated/fixed functionality.
  • [X] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • [X] I have updated/added relevant examples in examples.

Breaking Change

  • [X] Yes, this is a breaking change.
  • [ ] No, this is not a breaking change.

Related Issues

alestiago avatar Jul 21 '22 22:07 alestiago