flame icon indicating copy to clipboard operation
flame copied to clipboard

fix: Hitbox children of a CompositeHitbox to return correct parent

Open spydon opened this issue 3 years ago • 0 comments

Description

Since the CompositeHitbox shouldn't be counted as the real parent of a hitbox this PR ignores it for setting the hitboxParent, which is used to report the other component's parent in the onCollision* callbacks.

Checklist

  • [x] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • [x] I have followed the Contributor Guide when preparing my PR.
  • [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 or docs.

Breaking Change?

  • [x] No, this PR is not a breaking change.

Related Issues

spydon avatar Sep 19 '22 19:09 spydon