ci: cargo doc step (#671)

This commit is contained in:
Thierry Berger
2024-07-12 16:29:22 +02:00
committed by GitHub
parent 87ada34008
commit 01dd200152
14 changed files with 189 additions and 66 deletions

View File

@@ -622,8 +622,9 @@ impl ColliderBuilder {
/// Initialize a new collider builder with a capsule defined from its endpoints.
///
/// See also [`ColliderBuilder::capsule_x`], [`ColliderBuilder::capsule_y`], and
/// [`ColliderBuilder::capsule_z`], for a simpler way to build capsules with common
/// See also [`ColliderBuilder::capsule_x`], [`ColliderBuilder::capsule_y`],
/// (and `ColliderBuilder::capsule_z` in 3D only)
/// for a simpler way to build capsules with common
/// orientations.
pub fn capsule_from_endpoints(a: Point<Real>, b: Point<Real>, radius: Real) -> Self {
Self::new(SharedShape::capsule(a, b, radius))

View File

@@ -7,6 +7,9 @@ use parry::query::ContactManifoldsWorkspace;
use super::CollisionEvent;
#[cfg(doc)]
use super::Collider;
bitflags::bitflags! {
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
#[derive(Copy, Clone, PartialEq, Eq, Debug)]

View File

@@ -108,7 +108,7 @@ impl NarrowPhase {
/// All the contacts involving the given collider.
///
/// It is strongly recommended to use the [`NarrowPhase::contacts_with`] method instead. This
/// It is strongly recommended to use the [`NarrowPhase::contact_pairs_with`] method instead. This
/// method can be used if the generation number of the collider handle isn't known.
pub fn contact_pairs_with_unknown_gen(
&self,
@@ -141,7 +141,7 @@ impl NarrowPhase {
/// All the intersection pairs involving the given collider.
///
/// It is strongly recommended to use the [`NarrowPhase::intersections_with`] method instead.
/// It is strongly recommended to use the [`NarrowPhase::intersection_pairs_with`] method instead.
/// This method can be used if the generation number of the collider handle isn't known.
pub fn intersection_pairs_with_unknown_gen(
&self,