Replies: 1 comment 1 reply
-
If I understand correctly, you despawn an entity, and then modify its children's commands.entity(parent).clear_children().despawn(); However, when you do so, the children will set their global transform to their local transform, which is probably not what you want. You will need to update their transform: *transform = global_transform.reparented_to(GlobalTransform::default()); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an enemy in defender clone and add a person bundle to it. When it it hit, all its children which are found in the person_query have the state set to 'falling' and the enemy is despawned. After that transform changes don't affect the person
Beta Was this translation helpful? Give feedback.
All reactions