-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Spawning a child entity in or after POST_UPDATE won't be properly registred as child of the parent #891
Comments
I think this happened in the following commit: 43aac1a In the parent_update_system (which runs in POST_UPDATE) a query filter was added like this: |
I think you are right but I also thinkg this pr #907 shouldn't be the right call for it. I think the |
It would fix this specific issue, but I would very much prefer to not run the same system in every stage. That seems unnecessary and a bit hack-ey. Ideally I think it makes more sense to make Parent/Child updates transactional to avoid the issue entirely (or remove the Changed filter like #907 does, which is probably the better short term solution). |
Yeah, I guess the perf won't take that big of a hit |
If #68 is fixed this should be resolved. |
Bevy version
0.3 (commit fae6287)
Operating system & version
Fedora 31
What you did
Spawn a child entity during or after POST_UPDATE stage
You should only use the
spawn
function and then manually add the parent ...What you expected to happen
The entity
GlobalTransform
should reflect it's parent movementWhat actually happened
The entity was sitting still in the origin (0, 0, 0) while it's parent was moving around
Additional information
The text was updated successfully, but these errors were encountered: