less jumpy gforce on acceleration
This commit is contained in:
parent
14991879c9
commit
04825f467d
|
@ -48,20 +48,22 @@ impl Plugin for ActorPlugin {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
PostUpdate,
|
PreUpdate,
|
||||||
(
|
|
||||||
handle_wants_acceleration
|
handle_wants_acceleration
|
||||||
.run_if(game_running)
|
.run_if(game_running)
|
||||||
.run_if(alive)
|
.run_if(alive)
|
||||||
.after(PhysicsSet::Sync)
|
.after(PhysicsSet::Sync)
|
||||||
.after(sync::position_to_transform),
|
.after(sync::position_to_transform),
|
||||||
|
);
|
||||||
|
|
||||||
|
app.add_systems(
|
||||||
|
PostUpdate,
|
||||||
handle_gforce
|
handle_gforce
|
||||||
.run_if(game_running)
|
.run_if(game_running)
|
||||||
.run_if(alive)
|
.run_if(alive)
|
||||||
.after(PhysicsSet::Sync)
|
.after(PhysicsSet::Sync)
|
||||||
.after(sync::position_to_transform)
|
.after(sync::position_to_transform)
|
||||||
.after(handle_wants_acceleration),
|
.after(handle_wants_acceleration),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
Update,
|
Update,
|
||||||
|
|
Loading…
Reference in a new issue