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

Mutable per-manifold properties. More...

#include <rapier.h>

Data Fields

struct R2Vector normal
 World-space contact or surface normal.
R2Real friction
 Nonnegative friction coefficient.
R2Real restitution
 Nonnegative restitution coefficient.
uint32_t user_data
 Application data; Rapier does not own pointers encoded in it.
R2Bool enabled
 Whether this setting/object is enabled (0 or 1).

Detailed Description

Mutable per-manifold properties.

Set enabled=0 to discard all its solver contacts.

Field Documentation

◆ enabled

R2Bool R2ContactModification::enabled

Whether this setting/object is enabled (0 or 1).

◆ friction

R2Real R2ContactModification::friction

Nonnegative friction coefficient.

◆ normal

struct R2Vector R2ContactModification::normal

World-space contact or surface normal.

◆ restitution

R2Real R2ContactModification::restitution

Nonnegative restitution coefficient.

◆ user_data

uint32_t R2ContactModification::user_data

Application data; Rapier does not own pointers encoded in it.


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