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

One manifold contact and its normal solver impulse. More...

#include <rapier.h>

Data Fields

size_t manifold_index
 Index of the contact manifold within its pair.
struct R2Vector local_p1
 Contact point in collider 1 local coordinates.
struct R2Vector local_p2
 Contact point in collider 2 local coordinates.
struct R2Vector normal
 World-space contact or surface normal.
R2Real distance
 Signed separation; negative means penetration.
R2Real impulse
 Normal impulse applied at this contact.
R2Real tangent_impulse [1]
 Friction impulse along the tangent basis of the contact.

Detailed Description

One manifold contact and its normal solver impulse.

Field Documentation

◆ distance

R2Real R2ContactPoint::distance

Signed separation; negative means penetration.

◆ impulse

R2Real R2ContactPoint::impulse

Normal impulse applied at this contact.

◆ local_p1

struct R2Vector R2ContactPoint::local_p1

Contact point in collider 1 local coordinates.

◆ local_p2

struct R2Vector R2ContactPoint::local_p2

Contact point in collider 2 local coordinates.

◆ manifold_index

size_t R2ContactPoint::manifold_index

Index of the contact manifold within its pair.

◆ normal

struct R2Vector R2ContactPoint::normal

World-space contact or surface normal.

◆ tangent_impulse

R2Real R2ContactPoint::tangent_impulse[1]

Friction impulse along the tangent basis of the contact.


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