Skip to content

Commit 0d04fa9

Browse files
committed
fix: fix clippy::doc_overindented_list_items
1 parent c5634a5 commit 0d04fa9

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/dynamics/rigid_body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct RapierRigidBodyHandle(pub RigidBodyHandle);
2424
/// - [`Damping`]
2525
/// - [`Dominance`]
2626
/// - [`Ccd`]: Helps prevent tunneling through thin objects or rigid bodies
27-
/// moving at high velocities.
27+
/// moving at high velocities.
2828
/// - [`LockedAxes`]
2929
/// - [`RigidBodyDisabled`]
3030
/// - [`GravityScale`]

src/plugin/context/mod.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ impl RapierQueryPipeline {
180180
/// * `max_toi`: the maximum time-of-impact that can be reported by this cast. This effectively
181181
/// limits the length of the ray to `ray.dir.norm() * max_toi`. Use `Real::MAX` for an unbounded ray.
182182
/// * `solid`: if this is `true` an impact at time 0.0 (i.e. at the ray origin) is returned if
183-
/// it starts inside of a shape. If this `false` then the ray will hit the shape's boundary
184-
/// even if its starts inside of it.
183+
/// it starts inside of a shape. If this `false` then the ray will hit the shape's boundary
184+
/// even if its starts inside of it.
185185
/// * `filter`: set of rules used to determine which collider is taken into account by this scene query.
186186
#[expect(clippy::too_many_arguments)]
187187
pub fn cast_ray(
@@ -219,8 +219,8 @@ impl RapierQueryPipeline {
219219
/// * `max_toi`: the maximum time-of-impact that can be reported by this cast. This effectively
220220
/// limits the length of the ray to `ray.dir.norm() * max_toi`. Use `Real::MAX` for an unbounded ray.
221221
/// * `solid`: if this is `true` an impact at time 0.0 (i.e. at the ray origin) is returned if
222-
/// it starts inside of a shape. If this `false` then the ray will hit the shape's boundary
223-
/// even if its starts inside of it.
222+
/// it starts inside of a shape. If this `false` then the ray will hit the shape's boundary
223+
/// even if its starts inside of it.
224224
/// * `filter`: set of rules used to determine which collider is taken into account by this scene query.
225225
#[expect(clippy::too_many_arguments)]
226226
pub fn cast_ray_and_get_normal(
@@ -260,12 +260,12 @@ impl RapierQueryPipeline {
260260
/// * `max_toi`: the maximum time-of-impact that can be reported by this cast. This effectively
261261
/// limits the length of the ray to `ray.dir.norm() * max_toi`. Use `Real::MAX` for an unbounded ray.
262262
/// * `solid`: if this is `true` an impact at time 0.0 (i.e. at the ray origin) is returned if
263-
/// it starts inside of a shape. If this `false` then the ray will hit the shape's boundary
264-
/// even if its starts inside of it.
263+
/// it starts inside of a shape. If this `false` then the ray will hit the shape's boundary
264+
/// even if its starts inside of it.
265265
/// * `filter`: set of rules used to determine which collider is taken into account by this scene query.
266266
/// * `callback`: function executed on each collider for which a ray intersection has been found.
267-
/// There is no guarantees on the order the results will be yielded. If this callback returns `false`,
268-
/// this method will exit early, ignore any further raycast.
267+
/// There is no guarantees on the order the results will be yielded. If this callback returns `false`,
268+
/// this method will exit early, ignore any further raycast.
269269
#[allow(clippy::too_many_arguments)]
270270
pub fn intersections_with_ray(
271271
&self,
@@ -373,8 +373,8 @@ impl RapierQueryPipeline {
373373
/// * `point` - The point used for the containment test.
374374
/// * `filter`: set of rules used to determine which collider is taken into account by this scene query.
375375
/// * `callback` - A function called with each collider with a shape containing the `point`.
376-
/// If this callback returns `false`, this method will exit early, ignore any
377-
/// further point projection.
376+
/// If this callback returns `false`, this method will exit early, ignore any
377+
/// further point projection.
378378
pub fn intersections_with_point(
379379
&self,
380380
rapier_colliders: &RapierContextColliders,
@@ -475,12 +475,12 @@ impl RapierQueryPipeline {
475475
/// * `max_toi` - The maximum time-of-impact that can be reported by this cast. This effectively
476476
/// limits the distance traveled by the shape to `shape_vel.norm() * maxToi`.
477477
/// * `stop_at_penetration` - If the casted shape starts in a penetration state with any
478-
/// collider, two results are possible. If `stop_at_penetration` is `true` then, the
479-
/// result will have a `toi` equal to `start_time`. If `stop_at_penetration` is `false`
480-
/// then the nonlinear shape-casting will see if further motion wrt. the penetration normal
481-
/// would result in tunnelling. If it does not (i.e. we have a separating velocity along
482-
/// that normal) then the nonlinear shape-casting will attempt to find another impact,
483-
/// at a time `> start_time` that could result in tunnelling.
478+
/// collider, two results are possible. If `stop_at_penetration` is `true` then, the
479+
/// result will have a `toi` equal to `start_time`. If `stop_at_penetration` is `false`
480+
/// then the nonlinear shape-casting will see if further motion wrt. the penetration normal
481+
/// would result in tunnelling. If it does not (i.e. we have a separating velocity along
482+
/// that normal) then the nonlinear shape-casting will attempt to find another impact,
483+
/// at a time `> start_time` that could result in tunnelling.
484484
/// * `filter`: set of rules used to determine which collider is taken into account by this scene query.
485485
#[allow(clippy::too_many_arguments)]
486486
pub fn cast_shape(
@@ -974,7 +974,7 @@ impl RapierContextSimulation {
974974
/// * `shape_translation`: the initial position of the shape.
975975
/// * `shape_rotation`: the rotation of the shape.
976976
/// * `shape_mass`: the mass of the shape to be considered by the impulse calculation if
977-
/// `MoveShapeOptions::apply_impulse_to_dynamic_bodies` is set to true.
977+
/// `MoveShapeOptions::apply_impulse_to_dynamic_bodies` is set to true.
978978
/// * `options`: configures the behavior of the automatic sliding and climbing.
979979
/// * `filter`: indicates what collider or rigid-body needs to be ignored by the obstacle detection.
980980
/// * `events`: callback run on each obstacle hit by the shape on its path.

0 commit comments

Comments
 (0)