diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index a51e511e..2dbd7c8b 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -171,8 +171,8 @@ impl Default for Friction { } impl Friction { - /// Creates a `Friction` component from the given friction coefficient, and using the default - /// `CoefficientCombineRule::Average` coefficient combine rule. + /// Creates a [`Friction`] component from the given friction coefficient, and using the default + /// [`CoefficientCombineRule::Average`] coefficient combine rule. pub const fn new(coefficient: f32) -> Self { Self { coefficient, @@ -180,8 +180,8 @@ impl Friction { } } - /// Creates a `Friction` component from the given friction coefficient, and using the default - /// `CoefficientCombineRule::Average` coefficient combine rule. + /// Creates a [`Friction`] component from the given friction coefficient, and using the default + /// [`CoefficientCombineRule::Average`] coefficient combine rule. pub const fn coefficient(coefficient: f32) -> Self { Self { coefficient, @@ -204,8 +204,8 @@ pub struct Restitution { } impl Restitution { - /// Creates a `Restitution` component from the given restitution coefficient, and using the default - /// `CoefficientCombineRule::Average` coefficient combine rule. + /// Creates a [`Restitution`] component from the given restitution coefficient, and using the default + /// [`CoefficientCombineRule::Average`] coefficient combine rule. pub const fn new(coefficient: f32) -> Self { Self { coefficient, @@ -213,8 +213,8 @@ impl Restitution { } } - /// Creates a `Restitution` component from the given restitution coefficient, and using the default - /// `CoefficientCombineRule::Average` coefficient combine rule. + /// Creates a [`Restitution`] component from the given restitution coefficient, and using the default + /// [`CoefficientCombineRule::Average`] coefficient combine rule. pub const fn coefficient(coefficient: f32) -> Self { Self { coefficient, diff --git a/src/plugin/configuration.rs b/src/plugin/configuration.rs index b2d2c42f..fe26fe27 100644 --- a/src/plugin/configuration.rs +++ b/src/plugin/configuration.rs @@ -4,7 +4,7 @@ use crate::math::{Real, Vect}; use crate::plugin::RapierContext; #[cfg(doc)] -use rapier::dynamics::IntegrationParameters; +use {crate::prelude::TransformInterpolation, rapier::dynamics::IntegrationParameters}; /// Difference between simulation and rendering time #[derive(Resource, Default)] @@ -39,7 +39,7 @@ pub enum TimestepMode { }, /// Use a fixed timestep equal to `IntegrationParameters::dt`, but don't step if the /// physics simulation advanced by a time greater than the real-world elapsed time multiplied by `time_scale`. - /// Rigid-bodies with a component `InterpolatedTransform` attached will use interpolation to + /// Rigid-bodies with a component [`TransformInterpolation`] attached will use interpolation to /// estimate the rigid-bodies position in-between steps. Interpolated { /// The physics simulation will be advanced by this total amount at each Bevy tick, unless diff --git a/src/render/mod.rs b/src/render/mod.rs index b99e0c70..262f572c 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -6,9 +6,12 @@ use rapier::pipeline::{DebugRenderBackend, DebugRenderObject, DebugRenderPipelin pub use rapier::pipeline::{DebugRenderMode, DebugRenderStyle}; use std::fmt::Debug; +#[cfg(doc)] +use crate::prelude::Collider; + /// The color of a collider when using the debug-renderer. /// -/// Insert this component alongside the collider component to +/// Insert this component alongside the [`Collider`] component to /// force to a specific value the color used to render the /// collider. #[derive(Copy, Clone, Component, PartialEq, Debug)]