forge2d
forge2d copied to clipboard
refactor!: bullet getter and setter
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.