bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Propagate transforms in fixed update

Open james7132 opened this issue 1 year ago • 3 comments

Objective

Fix #7836. GlobalTransform is not updated in FixedUpdate.

Solution

Add it to FixedUpdate, keep the same system sets, clean up the code a bit.


Changelog

Changed: Transform propagation now runs in CoreSet::FixedUpdate.

james7132 avatar Mar 06 '23 12:03 james7132

We will need to add base sets to the FixedUpdate schedule, otherwise users will need to explicitly run their systems before transform propagation.

irate-devil avatar Mar 06 '23 13:03 irate-devil

Marking this as blocked on #7835 then.

james7132 avatar Mar 06 '23 13:03 james7132

won't this potentially run propagate_transforms multiple times in a frame even if a user isn't using fixed update? Or is the cost of that negligible with the change checking?

hymm avatar Mar 06 '23 22:03 hymm