ci: cargo doc step (#671)
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user