Skip to content

Commit

Permalink
Fix outdated mentions of the default schedule (#611)
Browse files Browse the repository at this point in the history
# Objective

Some places still mention `PostUpdate` as the default schedule for physics, even though it should be `FixedPostUpdate` now.

## Solution

Fix them.
  • Loading branch information
Jondolf authored Dec 31, 2024
1 parent aa56ed1 commit ac8e0a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ pub struct PhysicsPlugins {
impl PhysicsPlugins {
/// Creates a [`PhysicsPlugins`] plugin group using the given schedule for running the [`PhysicsSchedule`].
///
/// The default schedule is `PostUpdate`.
/// The default schedule is `FixedPostUpdate`.
pub fn new(schedule: impl ScheduleLabel) -> Self {
Self {
schedule: schedule.intern(),
Expand Down
4 changes: 2 additions & 2 deletions src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct SyncPlugin {
impl SyncPlugin {
/// Creates a [`SyncPlugin`] with the schedule that is used for running the [`PhysicsSchedule`].
///
/// The default schedule is `PostUpdate`.
/// The default schedule is `FixedPostUpdate`.
pub fn new(schedule: impl ScheduleLabel) -> Self {
Self {
schedule: schedule.intern(),
Expand All @@ -50,7 +50,7 @@ impl SyncPlugin {

impl Default for SyncPlugin {
fn default() -> Self {
Self::new(PostUpdate)
Self::new(FixedPostUpdate)
}
}

Expand Down

0 comments on commit ac8e0a0

Please sign in to comment.