diff options
Diffstat (limited to 'src/pipeline')
| -rw-r--r-- | src/pipeline/debug_render_pipeline/debug_render_backend.rs | 4 | ||||
| -rw-r--r-- | src/pipeline/debug_render_pipeline/debug_render_style.rs | 8 | ||||
| -rw-r--r-- | src/pipeline/physics_pipeline.rs | 4 | ||||
| -rw-r--r-- | src/pipeline/query_pipeline/mod.rs | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/pipeline/debug_render_pipeline/debug_render_backend.rs b/src/pipeline/debug_render_pipeline/debug_render_backend.rs index 664bf46..47673c5 100644 --- a/src/pipeline/debug_render_pipeline/debug_render_backend.rs +++ b/src/pipeline/debug_render_pipeline/debug_render_backend.rs @@ -46,7 +46,7 @@ pub trait DebugRenderBackend { color: [f32; 4], ); - /// Draws a set of line. + /// Draws a set of lines. fn draw_polyline( &mut self, object: DebugRenderObject, @@ -63,7 +63,7 @@ pub trait DebugRenderBackend { } } - /// Draws a chain of line. + /// Draws a chain of lines. fn draw_line_strip( &mut self, object: DebugRenderObject, diff --git a/src/pipeline/debug_render_pipeline/debug_render_style.rs b/src/pipeline/debug_render_pipeline/debug_render_style.rs index c977cab..ccc42aa 100644 --- a/src/pipeline/debug_render_pipeline/debug_render_style.rs +++ b/src/pipeline/debug_render_pipeline/debug_render_style.rs @@ -8,10 +8,10 @@ pub type DebugColor = [f32; 4]; /// Style used for computing colors when rendering the scene. #[derive(Copy, Clone, Debug, PartialEq)] pub struct DebugRenderStyle { - /// The number of subdivision used to approximate the curved + /// The number of subdivisions used to approximate the curved /// parts of a shape with smooth faces. pub subdivisions: u32, - /// The number of subdivision used to approimate the curved + /// The number of subdivisions used to approximate the curved /// borders of round shapes. pub border_subdivisions: u32, /// The color of colliders attached to dynamic rigid-bodies. @@ -42,13 +42,13 @@ pub struct DebugRenderStyle { pub disabled_color_multiplier: [f32; 4], /// The length of the local coordinate axes rendered for a rigid-body. pub rigid_body_axes_length: Real, - /// The collor for the segments joining the two contact points. + /// The color for the segments joining the two contact points. pub contact_depth_color: DebugColor, /// The color of the contact normals. pub contact_normal_color: DebugColor, /// The length of the contact normals. pub contact_normal_length: Real, - /// The color of the colliders Aabbs. + /// The color of the colliders' [`Aabb`]s. pub collider_aabb_color: DebugColor, } diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs index 166868b..8d1fec4 100644 --- a/src/pipeline/physics_pipeline.rs +++ b/src/pipeline/physics_pipeline.rs @@ -523,7 +523,7 @@ impl PhysicsPipeline { // integration of external forces. // // If there is only one or zero CCD substep, there is no need - // to split the timetsep interval. So we can just skip this part. + // to split the timestep interval. So we can just skip this part. if ccd_is_enabled && remaining_substeps > 1 { // NOTE: Take forces into account when updating the bodies CCD activation flags // these forces have not been integrated to the body's velocity yet. @@ -725,7 +725,7 @@ mod test { // Check that removing the body right after inserting it works. // We add two dynamic bodies, one kinematic body and one fixed body before removing - // them. This include a non-regression test where deleting a kimenatic body crashes. + // them. This include a non-regression test where deleting a kinematic body crashes. let rb = RigidBodyBuilder::dynamic().build(); let h1 = bodies.insert(rb.clone()); let h2 = bodies.insert(rb.clone()); diff --git a/src/pipeline/query_pipeline/mod.rs b/src/pipeline/query_pipeline/mod.rs index a822512..cd4ee49 100644 --- a/src/pipeline/query_pipeline/mod.rs +++ b/src/pipeline/query_pipeline/mod.rs @@ -357,7 +357,7 @@ impl QueryPipeline { self.qbvh.clear_and_rebuild(mode, self.dilation_factor); } - /// Find the closest intersection between a ray and a set of collider. + /// Find the closest intersection between a ray and a set of colliders. /// /// # Parameters /// * `colliders` - The set of colliders taking part in this pipeline. @@ -384,7 +384,7 @@ impl QueryPipeline { self.qbvh.traverse_best_first(&mut visitor).map(|h| h.1) } - /// Find the closest intersection between a ray and a set of collider. + /// Find the closest intersection between a ray and a set of colliders. /// /// # Parameters /// * `colliders` - The set of colliders taking part in this pipeline. @@ -415,7 +415,7 @@ impl QueryPipeline { self.qbvh.traverse_best_first(&mut visitor).map(|h| h.1) } - /// Find the all intersections between a ray and a set of collider and passes them to a callback. + /// Find the all intersections between a ray and a set of colliders and passes them to a callback. /// /// # Parameters /// * `colliders` - The set of colliders taking part in this pipeline. @@ -577,7 +577,7 @@ impl QueryPipeline { .map(|h| (h.1 .1 .0, h.1 .0, h.1 .1 .1)) } - /// Finds all handles of all the colliders with an Aabb intersecting the given Aabb. + /// Finds all handles of all the colliders with an [`Aabb`] intersecting the given [`Aabb`]. pub fn colliders_with_aabb_intersecting_aabb( &self, aabb: &Aabb, |
