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