-
Notifications
You must be signed in to change notification settings - Fork 44
Child Entities Lag Behind Parents #231
Comments
I observed a similar lag when I tried to sync a camera to a body. My guess: heron's step systems are responsible for updating bevy's
|
I was able to fix my problem with .add_system_to_stage(
CoreStage::PostUpdate,
set_camera_to_player
// The player's `Transform` is updated here
.after(PhysicsSystem::TransformUpdate)
// The camera's `Transform` is used here
.before(TransformSystem::TransformPropagate),
) |
Yes, this is the problem (and solution). I just didn't have time to solve it yet as I was on holiday. Hopefully (but unsure), I may have time this weekend. If you want to fix it yourself and open a pull request, you can. Just don't forget to add a test ;-) |
EDIT: I managed to reproduce, and fix it. I should be able to publish the fix today |
As reported in the discussion #230:
The text was updated successfully, but these errors were encountered: