#Where in PostUpdate can I update camera transform?
7 messages · Page 1 of 1 (latest)
needs to be scheduled before propagate_transforms and sync_simple_transforms systems
I see why that's necessary now. I need to update the camera's transform before it's global transform is updated. I didn't think of that before, thanks!
Did you end up figuring this out? I'm still having trouble 😅
.add_systems(
PostUpdate,
move_camera_to_car.before(bevy::transform::TransformSystem::TransformPropagate),
)
This is what works for me:
.add_systems(
PostUpdate,
transform_camera
.after(PhysicsSet::Sync)
.before(TransformSystem::TransformPropagate),
);
Ah thanks.
I can't tell if it helps or not, it could be my camera movement code based on lerp that is causing the jitter too for some reason, or some incorrect use of delta_seconds
Can you remove the lerp temporarily to see if that fixes the jitter?