aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline/debug_render_pipeline
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2024-07-22 16:32:08 +0700
committerGitHub <noreply@github.com>2024-07-22 11:32:08 +0200
commit7374653338cf1a2669aa8b072ff5376262149474 (patch)
treef57db02a6f9323351bfc1a246381d4973b04ca9f /src/pipeline/debug_render_pipeline
parentcf74150763dd575bc0399087e845e9be62aba56f (diff)
downloadrapier-7374653338cf1a2669aa8b072ff5376262149474.tar.gz
rapier-7374653338cf1a2669aa8b072ff5376262149474.tar.bz2
rapier-7374653338cf1a2669aa8b072ff5376262149474.zip
docs: Fix minor typos and tweaks (#696)
--------- Co-authored-by: Thierry Berger <contact@thierryberger.com>
Diffstat (limited to 'src/pipeline/debug_render_pipeline')
-rw-r--r--src/pipeline/debug_render_pipeline/debug_render_backend.rs4
-rw-r--r--src/pipeline/debug_render_pipeline/debug_render_style.rs8
2 files changed, 6 insertions, 6 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,
}