docs: Minor fixes.

This commit is contained in:
Bruce Mitchener
2023-08-28 11:05:45 +07:00
parent 5c6def3239
commit 4c2d18a0cd
5 changed files with 12 additions and 12 deletions

View File

@@ -136,7 +136,7 @@ pub enum ColliderMassProps {
/// The collider is given a density.
///
/// Its actual `MassProperties` are computed automatically with
/// the help of [`SharedShape::mass_properties`].
/// the help of [`Shape::mass_properties`].
Density(Real),
/// The collider is given a mass.
///

View File

@@ -178,7 +178,7 @@ impl NarrowPhase {
///
/// If this returns `None`, there is no contact between the two colliders.
/// If this returns `Some`, then there may be a contact between the two colliders. Check the
/// result [`ContactPair::has_any_active_collider`] method to see if there is an actual contact.
/// result [`ContactPair::has_any_active_contact`] method to see if there is an actual contact.
pub fn contact_pair_unknown_gen(&self, collider1: u32, collider2: u32) -> Option<&ContactPair> {
let id1 = self.graph_indices.get_unknown_gen(collider1)?;
let id2 = self.graph_indices.get_unknown_gen(collider2)?;
@@ -191,7 +191,7 @@ impl NarrowPhase {
///
/// If this returns `None`, there is no contact between the two colliders.
/// If this returns `Some`, then there may be a contact between the two colliders. Check the
/// result [`ContactPair::has_any_active_collider`] method to see if there is an actual contact.
/// result [`ContactPair::has_any_active_contact`] method to see if there is an actual contact.
pub fn contact_pair(
&self,
collider1: ColliderHandle,