Fix more typos. (#712)
These are ones not found by `typos` for various reasons.
This commit is contained in:
@@ -96,7 +96,7 @@ This release introduces two new crates:
|
|||||||
- Rename `JointAxis::X/Y/Z` to `::LinX/LinY/LinZ` to avoid confusing it with `::AngX/AngY/AngZ`.
|
- Rename `JointAxis::X/Y/Z` to `::LinX/LinY/LinZ` to avoid confusing it with `::AngX/AngY/AngZ`.
|
||||||
- Rename `JointAxesMask::X/Y/Z` to `::LIN_X/LIN_Y/LIN_Z` to avoid confusing it with `::ANG_X/ANG_Y/ANG_Z`.
|
- Rename `JointAxesMask::X/Y/Z` to `::LIN_X/LIN_Y/LIN_Z` to avoid confusing it with `::ANG_X/ANG_Y/ANG_Z`.
|
||||||
- The function `RigidBody::add_collider` is now private. It was only public because it was needed for some internal
|
- The function `RigidBody::add_collider` is now private. It was only public because it was needed for some internal
|
||||||
`bevy_rapier` plumbings, but it is no longer useful. Adding a collider must always go througthe `ColliderSet`.
|
`bevy_rapier` plumbings, but it is no longer useful. Adding a collider must always go through the `ColliderSet`.
|
||||||
- `CharacterController::solve_character_collision_impulses` now takes multiple `CharacterCollision` as parameter:
|
- `CharacterController::solve_character_collision_impulses` now takes multiple `CharacterCollision` as parameter:
|
||||||
this change will allow further internal optimizations.
|
this change will allow further internal optimizations.
|
||||||
- `QueryPipeline::update` now doesn't need the `RigidBodySet` as parameter.
|
- `QueryPipeline::update` now doesn't need the `RigidBodySet` as parameter.
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ impl CollisionDetectionCounters {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Resets all the coounters and timers.
|
/// Resets all the counters and timers.
|
||||||
pub fn reset(&mut self) {
|
pub fn reset(&mut self) {
|
||||||
self.ncontact_pairs = 0;
|
self.ncontact_pairs = 0;
|
||||||
self.broad_phase_time.reset();
|
self.broad_phase_time.reset();
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ pub struct Counters {
|
|||||||
pub step_time: Timer,
|
pub step_time: Timer,
|
||||||
/// Timer used for debugging.
|
/// Timer used for debugging.
|
||||||
pub custom: Timer,
|
pub custom: Timer,
|
||||||
/// Counters of every satge of one time step.
|
/// Counters of every stage of one time step.
|
||||||
pub stages: StagesCounters,
|
pub stages: StagesCounters,
|
||||||
/// Counters of the collision-detection stage.
|
/// Counters of the collision-detection stage.
|
||||||
pub cd: CollisionDetectionCounters,
|
pub cd: CollisionDetectionCounters,
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ impl<T> Coarena<T> {
|
|||||||
self.data[i1 as usize] = (g1, value);
|
self.data[i1 as usize] = (g1, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Ensure that the given element exists in thihs coarena, and return its mutable reference.
|
/// Ensure that the given element exists in this coarena, and return its mutable reference.
|
||||||
pub fn ensure_element_exist(&mut self, a: Index, default: T) -> &mut T
|
pub fn ensure_element_exist(&mut self, a: Index, default: T) -> &mut T
|
||||||
where
|
where
|
||||||
T: Clone,
|
T: Clone,
|
||||||
@@ -99,7 +99,7 @@ impl<T> Coarena<T> {
|
|||||||
&mut data.1
|
&mut data.1
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Ensure that elements at the two given indices exist in this coarena, and return their reference.
|
/// Ensure that elements at the two given indices exist in this coarena, and return their references.
|
||||||
///
|
///
|
||||||
/// Missing elements are created automatically and initialized with the `default` value.
|
/// Missing elements are created automatically and initialized with the `default` value.
|
||||||
pub fn ensure_pair_exists(&mut self, a: Index, b: Index, default: T) -> (&mut T, &mut T)
|
pub fn ensure_pair_exists(&mut self, a: Index, b: Index, default: T) -> (&mut T, &mut T)
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ impl MultibodyJointSet {
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the the joint between two rigid-bodies (if it exists).
|
/// Returns the joint between two rigid-bodies (if it exists).
|
||||||
pub fn joint_between(
|
pub fn joint_between(
|
||||||
&self,
|
&self,
|
||||||
rb1: RigidBodyHandle,
|
rb1: RigidBodyHandle,
|
||||||
|
|||||||
Reference in New Issue
Block a user