forge2d icon indicating copy to clipboard operation
forge2d copied to clipboard

refactor!: bullet getter and setter

Open alestiago opened this issue 1 year ago • 0 comments

Description

Removes setBullet and isBuller in favour of setter and getters.

// Before:
body.setBullet(true);
body.isBullet(); // true

// After:
body.bullet = true;
body.bullet; // true

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