bevy_third_person_camera icon indicating copy to clipboard operation
bevy_third_person_camera copied to clipboard

This crate doesnt work well, with any type of physics engine.

Open Sirmadeira opened this issue 10 months ago • 12 comments

The scenario is simple. The samples given translate well to the common type of movements that only utilize bevy. But anything that utilizes rapier and XPBD will certainly be broken. Since the fn sync_player_camera doesn't run after the system sets that affect translation and so on. A simple solution would be to make it so the sync_player_camera fn, runs after the physic sets being used. Be it rapier or xpbd. If you read this give me the okay and I will write the pull request.

PS: Love your videos Andrew they helped me a lot. Getting started

Sample on how it should run in rapier:

    app.add_systems(PostUpdate, sync_player_camera.after(PhysicsSet::StepSimulation));

Sirmadeira avatar Apr 09 '24 18:04 Sirmadeira