Expand description
Components related to physics geometry (colliders, collision-groups, etc.)
Re-exports§
pub use self::shape_views::ColliderView;
Modules§
- shape_
views - Wrappers around Rapier shapes to access their properties.
Structs§
- Active
Collision Types - Flags affecting whether or not collision-detection happens between two colliders depending on the type of rigid-bodies they are attached to.
- Active
Events - Flags affecting the events generated for this
Collider. - Active
Hooks - Flags affecting the behavior of the constraints solver for a given contact manifold.
- Collider
- A geometric entity that can be attached to a
RigidBodyso it can be affected by contacts and intersection queries. - Collider
Disabled - Indicates whether or not the collider is disabled explicitly by the user.
- Colliding
Entities - Component which will be filled (if present) with a list of entities with which the current entity is currently in contact.
- Collision
Groups - Pairwise collision filtering using bit masks.
- Compound
Flags - Controls how a
Compoundis loaded. - Contact
Force Event Threshold - The total force magnitude beyond which a
ContactForceEventcan be emitted. - Contact
Skin - Sets the contact skin of the collider.
- Friction
- The friction affecting a
Collider. - Group
- A bit mask identifying groups for interaction.
- Nonlinear
Motion - A rigid motion combining a constant linear and a constant angular velocity, used for
nonlinear shape casting with
Collider::cast_shape_nonlinear. - Point
Projection - Result of the projection of a point on a shape.
- Polyline
Flags - Controls how a
Polylineis loaded. - Rapier
Collider Handle - The Rapier handle of a collider that was inserted to the physics scene.
- RayIntersection
- Structure containing the result of a successful ray cast.
- Read
Collider Mass Properties - The mass-related properties of a
Collider, as computed by Rapier. - Restitution
- The restitution affecting a
Collider. - Sensor
- Indicates whether or not the
Collideris a sensor. - Shape
Cast Hit - The result of a shape cast.
- Shape
Cast HitDetails - In depth information about a shape-cast hit.
- Shape
Cast Options - Configuration for controlling the behavior of time-of-impact (i.e. shape-casting) calculations.
- Shape
Contact - The result of a contact query between two colliders.
- Solver
Flags - Flags affecting the behavior of the constraints solver for a given contact manifold.
- Solver
Groups - Pairwise constraints resolution filtering using bit masks.
- TriMesh
Flags - Controls how a
TriMeshshould be loaded. - Unsupported
- Error indicating that a geometric query is not supported between certain shape combinations.
- VHACD
Parameters - Parameters controlling the VHACD convex decomposition algorithm.
Enums§
- Collider
Mass Properties - Custom mass-properties of a
Collider. - Collider
Scale - Overwrites the default application of
GlobalTransformscale to aCollider’s shapes. - Fill
Mode - Controls how voxelization determines which voxels are filled vs empty.
- Interaction
Test Mode - Specifies how the memberships and filters of two
CollisionGroups(or twoSolverGroups) are tested against each other. - Mesh
Converter - Determines how meshes (generally when loaded from a file) are converted into Rapier colliders.
- Mesh
Converter Error - Error that can be generated by the
MeshConverter. - Shape
Cast Status - The status of the time-of-impact computation algorithm.
- Shape
Closest Points - The result of a closest-points query between two colliders.
Traits§
- AsShape
- A shape accepted by the scene queries (e.g.
RapierContext::cast_shape) and byRapierContextMut::move_shape: aCollider(its scaled shape), a Rapier shape trait object (&dyn Shape, e.g.&*shared_shape), or any concrete Rapier shape (e.g.Ball).
Functions§
- get_
snapped_ scale - We restrict the scaling increment to 1.0e-4, to avoid numerical jitter due to the extraction of scaling factor from the GlobalTransform matrix.