-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loaded entity position ignores pivot #290
Comments
Yep, I agree this is bad behavior. It's a holdover from when this plugin was originally written, which was before the |
This is the basic ingredient needed to fix Trouv#290. There's a lot of things which will potentially break if this is done in isolation, so there's a lot more work ahead.
Ahh, historical workarounds....that makes sense 🙂 |
Any update on this issue? Is there a workaround while #294 is still open? |
I know I had one. Lemme see if I can find it....
|
In my LDtk project, I have defined a number of entities with a bottom pivot point:
Based on my work in other apps, I expect the pivot to change how entities are placed relative to the position shown--and indeed, in LDtk I see this exact thing happening.
Left: origin on the bottom. Right: origin in center, moved to fill the same space. Note the changed Y coordinate.
But when those entities are loaded into Bevy:
What the pfargtl?! The
Transform
component stores the object's center instead of its origin!I've compensated in my code. But it's a huge bother to have to do complicated math instead of just reading a component which, frankly, ought to match LDtk's behavior in the first place (apart from Y-down coordinates).
The text was updated successfully, but these errors were encountered: