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

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

#include <rapier.h>

Data Fields

struct R3ColliderHandle collider1
 First collider in the pair.
struct R3ColliderHandle collider2
 Second collider in the pair.
R3Bool has_any_active_contact
 Whether the pair has an active solver contact.
struct R3Vector total_impulse
 Sum of world-space contact impulse vectors.
R3Real total_impulse_magnitude
 Sum of contact impulse magnitudes.
R3Real max_impulse
 Largest contact impulse magnitude.
struct R3Vector 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 R3ColliderHandle R3ContactPair::collider1

First collider in the pair.

◆ collider2

struct R3ColliderHandle R3ContactPair::collider2

Second collider in the pair.

◆ has_any_active_contact

R3Bool R3ContactPair::has_any_active_contact

Whether the pair has an active solver contact.

◆ max_impulse

R3Real R3ContactPair::max_impulse

Largest contact impulse magnitude.

◆ max_impulse_direction

struct R3Vector R3ContactPair::max_impulse_direction

World-space direction of the largest contact impulse.

◆ total_impulse

struct R3Vector R3ContactPair::total_impulse

Sum of world-space contact impulse vectors.

◆ total_impulse_magnitude

R3Real R3ContactPair::total_impulse_magnitude

Sum of contact impulse magnitudes.


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