@@ -12,6 +12,9 @@ use rapier::prelude::{ColliderHandle, InteractionGroups, SharedShape};
1212use crate :: dynamics:: { CoefficientCombineRule , MassProperties } ;
1313use crate :: math:: Vect ;
1414
15+ #[ cfg( doc) ]
16+ use rapier:: { dynamics:: RigidBody , geometry:: ContactForceEvent } ;
17+
1518/// The Rapier handle of a collider that was inserted to the physics scene.
1619#[ derive( Copy , Clone , Debug , Component ) ]
1720pub struct RapierColliderHandle ( pub ColliderHandle ) ;
@@ -25,8 +28,8 @@ pub struct AsyncCollider(pub ComputedColliderShape);
2528#[ cfg( all( feature = "dim3" , feature = "async-collider" ) ) ]
2629#[ derive( Component , Debug , Clone ) ]
2730pub struct AsyncSceneCollider {
28- /// Collider type for each scene mesh not included in [`named_shapes`]. If [`None`], then all
29- /// shapes will be skipped for processing except [`named_shapes`].
31+ /// Collider type for each scene mesh not included in [`Self:: named_shapes`]. If [`None`], then all
32+ /// shapes will be skipped for processing except [`Self:: named_shapes`].
3033 pub shape : Option < ComputedColliderShape > ,
3134 /// Shape types for meshes by name. If shape is [`None`], then it will be skipped for
3235 /// processing.
@@ -103,7 +106,7 @@ impl fmt::Debug for Collider {
103106 }
104107}
105108
106- /// Overwrites the default application of [`GlobalTransform::scale`] to a [`Collider`]'s shapes.
109+ /// Overwrites the default application of [`GlobalTransform`] scale to a [`Collider`]'s shapes.
107110#[ derive( Copy , Clone , Debug , PartialEq , Component , Reflect ) ]
108111pub enum ColliderScale {
109112 /// This scale will be multiplied with the scale in the [`GlobalTransform`] component
0 commit comments