Sprite AABB does not seem to update with position of the sprites #14422
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Uh oh!
There was an error while loading. Please reload this page.
Bevy version
0.14
What you did
In this picture the two boxes represent the AABBs of the fireball and the small dude in the top-left respectively.
Normal 2D setup with DefaultPlugins and default features. I'm fetching the AABBs gizmos like so:
What went wrong
The position of the Aabb doesn't move as the sprites move. This can be quickly double-checked with bevy_inspector_egui: the
center
of all theAabb
s in my scene is (0,0,0).Additional information
This is related to #11892 as its a bug in the same area of code, but I don't think it's the same root cause.
As a workaround, you can fetch the correct center using
GlobalTransform
.The text was updated successfully, but these errors were encountered: