Rapier C — 2D / f64 0.36.0+c.0
Loading...
Searching...
No Matches
R2ContactPair Struct Reference

Current narrow-phase pair and accumulated solver impulse summary. More...

#include <rapier.h>

Data Fields

struct R2ColliderHandle collider1
 First collider in the pair.
struct R2ColliderHandle collider2
 Second collider in the pair.
R2Bool has_any_active_contact
 Whether the pair has an active solver contact.
struct R2Vector total_impulse
 Sum of world-space contact impulse vectors.
R2Real total_impulse_magnitude
 Sum of contact impulse magnitudes.
R2Real max_impulse
 Largest contact impulse magnitude.
struct R2Vector max_impulse_direction
 World-space direction of the largest contact impulse.

Detailed Description

Current narrow-phase pair and accumulated solver impulse summary.

Field Documentation

◆ collider1

struct R2ColliderHandle R2ContactPair::collider1

First collider in the pair.

◆ collider2

struct R2ColliderHandle R2ContactPair::collider2

Second collider in the pair.

◆ has_any_active_contact

R2Bool R2ContactPair::has_any_active_contact

Whether the pair has an active solver contact.

◆ max_impulse

R2Real R2ContactPair::max_impulse

Largest contact impulse magnitude.

◆ max_impulse_direction

struct R2Vector R2ContactPair::max_impulse_direction

World-space direction of the largest contact impulse.

◆ total_impulse

struct R2Vector R2ContactPair::total_impulse

Sum of world-space contact impulse vectors.

◆ total_impulse_magnitude

R2Real R2ContactPair::total_impulse_magnitude

Sum of contact impulse magnitudes.


The documentation for this struct was generated from the following file: