Skip to main content

Module pipeline

Module pipeline 

Source
Expand description

Structure for combining the various physics components to perform an actual simulation.

Structs§

ActiveEvents
Flags that control which physics events are generated for a collider.
ActiveHooks
Flags that enable custom collision filtering and contact modification callbacks.
ChannelEventCollector
A ready-to-use event handler that collects events into channels for later processing.
CollisionPipeline
A collision detection pipeline that can be used without full physics simulation.
ContactModificationContext
Context given to custom contact modifiers to modify the contacts seen by the constraints solver.
ModifiableManifold
A contact manifold as the hook may modify it (see ModifiableContacts::Rigid).
PairFilterContext
Context given to custom collision filters to filter-out collisions.
PhysicsPipeline
The main physics simulation engine that runs your physics world forward in time.
PhysicsWorld
A convenience wrapper that bundles all the Rapier physics state into a single struct.
Quarantine
Non-finite (NaN or infinite) state detected and neutralized during the last step; reports are cleared each step. Reported bodies are reset to their last valid pose (when known), zeroed and disabled (set_enabled(true) re-enables them); soft bodies are zeroed and disabled.
QueryFilter
Filtering rules for spatial queries (raycasts, shape casts, etc.).
QueryFilterFlags
Flags for filtering spatial queries by body type or sensor status.
QueryPipeline
A query system for performing spatial queries on your physics world (raycasts, shape casts, intersections).
QueryPipelineMut
Same as QueryPipeline but holds mutable references to the body and collider sets.

Enums§

ModifiableContacts
The contacts a ContactModificationContext lets the hook modify (see PhysicsHooks::modify_solver_contacts).

Traits§

EventHandler
A callback interface for receiving physics events (collisions starting/stopping, contact forces, soft-body tears).
PhysicsHooks
User-defined functions called by the physics engines during one timestep in order to customize its behavior.