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

Contact seen by the constraint solver. More...

#include <rapier.h>

Data Fields

struct R2Vector point1
 World-space contact point on collider 1's body.
struct R2Vector point2
 World-space contact point on collider 2's body.
R2Real distance
 Signed separation along the normal, contact skins deducted; negative means penetration.
struct R2Vector tangent_velocity
 Desired world-space tangent relative velocity, e.g.

Detailed Description

Contact seen by the constraint solver.

Points are world-space, on each body's surface.

Field Documentation

◆ distance

R2Real R2SolverContact::distance

Signed separation along the normal, contact skins deducted; negative means penetration.

◆ point1

struct R2Vector R2SolverContact::point1

World-space contact point on collider 1's body.

◆ point2

struct R2Vector R2SolverContact::point2

World-space contact point on collider 2's body.

◆ tangent_velocity

struct R2Vector R2SolverContact::tangent_velocity

Desired world-space tangent relative velocity, e.g.

for conveyor belts; zero by default.


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