docs: Minor fixes.
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user