diff --git a/src/lib.rs b/src/lib.rs index 990a96d6..574c88f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,7 +40,7 @@ //! - Debug rendering [colliders](Collider), [AABBs](ColliderAabb), [contacts](Contact), [joints] and axes //! (with `debug-plugin` feature) //! - Automatically deactivating bodies with [sleeping](Sleeping) -//! - Configurable [timesteps](PhysicsTimestep) and [substepping](SubstepCount) +//! - Configurable [timesteps](PhysicsTimestep), [time scale](PhysicsTimescale) and [substepping](SubstepCount) //! - `f32`/`f64` precision (`f32` by default) //! //! ## Getting started @@ -177,6 +177,7 @@ //! - [Point projection](spatial_query#point-projection) //! - [Intersection tests](spatial_query#intersection-tests) //! - [Configure the physics timestep](PhysicsTimestep) +//! - [Configure the time scale](PhysicsTimescale) //! - [Configure the substep count](SubstepCount) //! - [Configure the schedule for running physics](PhysicsPlugins#custom-schedule) //! - [Usage on servers](#can-the-engine-be-used-on-servers) diff --git a/src/plugins/setup.rs b/src/plugins/setup.rs index ed2516bb..f5cebdd5 100644 --- a/src/plugins/setup.rs +++ b/src/plugins/setup.rs @@ -50,6 +50,7 @@ impl Plugin for PhysicsSetupPlugin { fn build(&self, app: &mut App) { // Init resources and register component types app.init_resource::() + .init_resource::() .init_resource::() .init_resource::() .init_resource::() @@ -212,13 +213,15 @@ fn run_physics_schedule(world: &mut World) { let delta_seconds = world.resource::