Module narrow_phase

Module narrow_phase 

Source
Expand description

Updates and manages contact pairs between colliders.

§Overview

Before the narrow phase, the broad phase creates a contact pair in the ContactGraph resource for each pair of intersecting ColliderAabbs.

The narrow phase then determines which contact pairs found in the ContactGraph are touching, and computes updated contact points and normals in a parallel loop.

Afterwards, the narrow phase removes contact pairs whose AABBs no longer overlap, and writes collision events for colliders that started or stopped touching. This is done in a fast serial loop to preserve determinism.

The solver then generates a ContactConstraint for each contact pair that is touching or expected to touch during the time step.

Structs§

CollisionEventSystems
A system set for triggering the CollisionStart and CollisionEnd events.
NarrowPhase
A system parameter for managing the narrow phase.
NarrowPhaseConfig
A resource for configuring the narrow phase.
NarrowPhasePlugin
A narrow phase plugin for updating and managing contact pairs between colliders of type C.

Enums§

NarrowPhaseSystems
System sets for systems running in PhysicsStepSystems::NarrowPhase.

Type Aliases§

NarrowPhaseSetDeprecated
A deprecated alias for NarrowPhaseSystems.