WIP crisper camera controls (fix gforce calculation)
This commit is contained in:
parent
6a82c185f2
commit
35d9f0b4fd
17
src/actor.rs
17
src/actor.rs
|
@ -40,7 +40,6 @@ impl Plugin for ActorPlugin {
|
||||||
update_power.run_if(game_running),
|
update_power.run_if(game_running),
|
||||||
handle_gravity.run_if(game_running),
|
handle_gravity.run_if(game_running),
|
||||||
handle_wants_rotation_change.run_if(game_running),
|
handle_wants_rotation_change.run_if(game_running),
|
||||||
handle_wants_acceleration.run_if(game_running).run_if(alive),
|
|
||||||
handle_wants_maxrotation.run_if(game_running),
|
handle_wants_maxrotation.run_if(game_running),
|
||||||
handle_wants_maxvelocity
|
handle_wants_maxvelocity
|
||||||
.run_if(game_running)
|
.run_if(game_running)
|
||||||
|
@ -50,10 +49,18 @@ impl Plugin for ActorPlugin {
|
||||||
);
|
);
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
PostUpdate,
|
PostUpdate,
|
||||||
handle_gforce
|
(
|
||||||
.run_if(game_running)
|
handle_wants_acceleration
|
||||||
.after(PhysicsSet::Sync)
|
.run_if(game_running)
|
||||||
.after(sync::position_to_transform),
|
.run_if(alive)
|
||||||
|
.after(PhysicsSet::Sync)
|
||||||
|
.after(sync::position_to_transform),
|
||||||
|
handle_gforce
|
||||||
|
.run_if(game_running)
|
||||||
|
.after(PhysicsSet::Sync)
|
||||||
|
.after(sync::position_to_transform)
|
||||||
|
.after(handle_wants_acceleration),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
Update,
|
Update,
|
||||||
|
|
Loading…
Reference in a new issue