|
Rapier C — 2D / f32 0.36.0+c.0
|
Geometric contact manifold of a contact pair: contacts sharing one normal. More...
#include <rapier.h>
Data Fields | |
| struct R2Vector | local_n1 |
| Contact normal in collider 1 local coordinates, pointing outward from it. | |
| struct R2Vector | local_n2 |
| Contact normal in collider 2 local coordinates, pointing outward from it. | |
| struct R2Vector | normal |
| World-space contact normal, pointing from collider 1 toward collider 2. | |
| uint32_t | subshape1 |
| Index of the subshape of collider 1 (for composite shapes), zero otherwise. | |
| uint32_t | subshape2 |
| Index of the subshape of collider 2 (for composite shapes), zero otherwise. | |
| size_t | num_points |
| Number of geometric contact points; see r2ContactPoints. | |
| size_t | num_solver_contacts |
| Number of solver contacts; see r2SolverContacts. | |
| uint32_t | user_data |
| Application data, persistent across steps and editable by contact-modification hooks. | |
Geometric contact manifold of a contact pair: contacts sharing one normal.
Local data follow the pair's own collider1/collider2 order (see r2ContactPair).
| struct R2Vector R2ContactManifold::local_n1 |
Contact normal in collider 1 local coordinates, pointing outward from it.
| struct R2Vector R2ContactManifold::local_n2 |
Contact normal in collider 2 local coordinates, pointing outward from it.
| struct R2Vector R2ContactManifold::normal |
World-space contact normal, pointing from collider 1 toward collider 2.
| size_t R2ContactManifold::num_points |
Number of geometric contact points; see r2ContactPoints.
| size_t R2ContactManifold::num_solver_contacts |
Number of solver contacts; see r2SolverContacts.
| uint32_t R2ContactManifold::subshape1 |
Index of the subshape of collider 1 (for composite shapes), zero otherwise.
| uint32_t R2ContactManifold::subshape2 |
Index of the subshape of collider 2 (for composite shapes), zero otherwise.
| uint32_t R2ContactManifold::user_data |
Application data, persistent across steps and editable by contact-modification hooks.