Skip to main content

Module geometry

Module geometry 

Source
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§

ActiveCollisionTypes
Flags affecting whether or not collision-detection happens between two colliders depending on the type of rigid-bodies they are attached to.
ActiveEvents
Flags affecting the events generated for this Collider.
ActiveHooks
Flags affecting the behavior of the constraints solver for a given contact manifold.
Collider
A geometric entity that can be attached to a RigidBody so it can be affected by contacts and intersection queries.
ColliderDisabled
Indicates whether or not the collider is disabled explicitly by the user.
CollidingEntities
Component which will be filled (if present) with a list of entities with which the current entity is currently in contact.
CollisionGroups
Pairwise collision filtering using bit masks.
CompoundFlags
Controls how a Compound is loaded.
ContactForceEventThreshold
The total force magnitude beyond which a ContactForceEvent can be emitted.
ContactSkin
Sets the contact skin of the collider.
Friction
The friction affecting a Collider.
Group
A bit mask identifying groups for interaction.
NonlinearMotion
A rigid motion combining a constant linear and a constant angular velocity, used for nonlinear shape casting with Collider::cast_shape_nonlinear.
PointProjection
Result of the projection of a point on a shape.
PolylineFlags
Controls how a Polyline is loaded.
RapierColliderHandle
The Rapier handle of a collider that was inserted to the physics scene.
RayIntersection
Structure containing the result of a successful ray cast.
ReadColliderMassProperties
The mass-related properties of a Collider, as computed by Rapier.
Restitution
The restitution affecting a Collider.
Sensor
Indicates whether or not the Collider is a sensor.
ShapeCastHit
The result of a shape cast.
ShapeCastHitDetails
In depth information about a shape-cast hit.
ShapeCastOptions
Configuration for controlling the behavior of time-of-impact (i.e. shape-casting) calculations.
ShapeContact
The result of a contact query between two colliders.
SolverFlags
Flags affecting the behavior of the constraints solver for a given contact manifold.
SolverGroups
Pairwise constraints resolution filtering using bit masks.
TriMeshFlags
Controls how a TriMesh should be loaded.
Unsupported
Error indicating that a geometric query is not supported between certain shape combinations.
VHACDParameters
Parameters controlling the VHACD convex decomposition algorithm.

Enums§

ColliderMassProperties
Custom mass-properties of a Collider.
ColliderScale
Overwrites the default application of GlobalTransform scale to a Collider’s shapes.
FillMode
Controls how voxelization determines which voxels are filled vs empty.
InteractionTestMode
Specifies how the memberships and filters of two CollisionGroups (or two SolverGroups) are tested against each other.
MeshConverter
Determines how meshes (generally when loaded from a file) are converted into Rapier colliders.
MeshConverterError
Error that can be generated by the MeshConverter.
ShapeCastStatus
The status of the time-of-impact computation algorithm.
ShapeClosestPoints
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 by RapierContextMut::move_shape: a Collider (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.