You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was working on cleaning up some entities today and encountered some odd behavior when I removed all the children of my Kinematic Entity that is controlled by the user.
For instance, i had a rectangle as the kinematic entity and effectively had a chain attached to it. I could press left and right to move the rectangle at an accelerating rate and then space to remove the chain.
This resulted in the left and right movement going super speed even though printing values to the console still reported what I would expect.
Removing the chain involved just looping over all the children and removing them from the parent and despawning them. When you remove all the children from an entity, Bevy also removes the Children component.
I added in a dummy empty child and then deleting everything else and the broken physics stopped occurring. Is there a dependency on the Children component existing somewhere or an issue with it existing at one point and then not existing later?
The text was updated successfully, but these errors were encountered:
Was working on cleaning up some entities today and encountered some odd behavior when I removed all the children of my Kinematic Entity that is controlled by the user.
For instance, i had a rectangle as the kinematic entity and effectively had a chain attached to it. I could press left and right to move the rectangle at an accelerating rate and then space to remove the chain.
This resulted in the left and right movement going super speed even though printing values to the console still reported what I would expect.
Removing the chain involved just looping over all the children and removing them from the parent and despawning them. When you remove all the children from an entity, Bevy also removes the Children component.
I added in a dummy empty child and then deleting everything else and the broken physics stopped occurring. Is there a dependency on the Children component existing somewhere or an issue with it existing at one point and then not existing later?
The text was updated successfully, but these errors were encountered: