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

Plain configuration data; initialize defaults, edit, then apply. More...

#include <rapier.h>

Data Fields

R2Bool authoredVelocityMargin
 Expand speculative contact margins to cover particle velocities set between steps.
R2Bool edgeSpeculation
 Enable speculative edge-edge collision constraints.
R2Bool invertedCellDetection
 Detect inverted cells to support self-contact recovery.
R2Bool selfCrossingDetection
 Detect surface self-crossings each step.
R2Bool detectionMotionGating
 Skip self-crossing detection when accumulated motion cannot have created a crossing.
R2Bool crossBodyDetection
 Detect boundary crossings between soft bodies.
R2Bool selfStandDown
 Disable contacts on tangled features so elasticity can untangle them.
R2Bool crossBodyExpelGate
 Allow contacts at cross-body crossings to expel, but not hold, the intruder.
R2Bool edgeStandDown
 Disable edge constraints touching cross-body crossings.
R2Bool crossingRepulsion
 Repel crossing features toward their neighborhood's side of the surface.
R2Bool crossingRepulsionGuide
 Guide cross-body repulsion by overlap-volume normals; closed meshes only.
R2Bool crossingRepulsionSelfGuide
 Guide self-crossing repulsion by self-intersection-volume normals; closed meshes only.
R2Real recoveryPace
 Maximum recovery rate in length units per second, scaled by lengthUnit.
R2Bool overlapConstraints
 Enable intersection-volume constraints for overlapping closed surfaces.
R2Bool overlapRigid
 Enable intersection-volume constraints against rigid colliders.
R2Bool overlapSkipSelfTangled
 Skip pair overlap constraints for self-crossed meshes.
R2Bool overlapEdgeStandDown
 Disable 3D closed-surface edge constraints where overlap constraints take over.
R2Real overlapConstraintPace
 Velocity-change limit per step, as a multiple of recoveryPace.
uint32_t overlapPatchConstraints
 Per-point constraints inside overlap patches: R2_SOFT_PATCH_CONSTRAINTS_KEEP, _STAND_DOWN or _ALONG_NORMAL.
R2Bool overlapSkinVolume
 Measure overlap on contact-skin surfaces rather than bare geometry.
R2Real overlapKeptDepth
 Overlap depth retained by recovery, as a fraction of the pair's contact skins.
R2Bool overlapSelfRegions
 Enable recovery of self-intersection regions.
R2Bool overlapNormalPush
 Use the overlap normal for recovery pushes.
R2Bool overlapMultiVolume
 Use spatially split overlap-volume constraints.
uint32_t overlapSplit
 Cells per tangent axis of the multi-volume grid.
uint32_t overlapPatience
 Recovery progress patience in steps.
R2Real overlapProgressMargin
 Relative overlap-volume decrease that counts as recovery progress.

Detailed Description

Plain configuration data; initialize defaults, edit, then apply.

No destructor.

Field Documentation

◆ authoredVelocityMargin

R2Bool R2SoftRecoverySettings::authoredVelocityMargin

Expand speculative contact margins to cover particle velocities set between steps.

◆ crossBodyDetection

R2Bool R2SoftRecoverySettings::crossBodyDetection

Detect boundary crossings between soft bodies.

◆ crossBodyExpelGate

R2Bool R2SoftRecoverySettings::crossBodyExpelGate

Allow contacts at cross-body crossings to expel, but not hold, the intruder.

◆ crossingRepulsion

R2Bool R2SoftRecoverySettings::crossingRepulsion

Repel crossing features toward their neighborhood's side of the surface.

◆ crossingRepulsionGuide

R2Bool R2SoftRecoverySettings::crossingRepulsionGuide

Guide cross-body repulsion by overlap-volume normals; closed meshes only.

◆ crossingRepulsionSelfGuide

R2Bool R2SoftRecoverySettings::crossingRepulsionSelfGuide

Guide self-crossing repulsion by self-intersection-volume normals; closed meshes only.

◆ detectionMotionGating

R2Bool R2SoftRecoverySettings::detectionMotionGating

Skip self-crossing detection when accumulated motion cannot have created a crossing.

◆ edgeSpeculation

R2Bool R2SoftRecoverySettings::edgeSpeculation

Enable speculative edge-edge collision constraints.

◆ edgeStandDown

R2Bool R2SoftRecoverySettings::edgeStandDown

Disable edge constraints touching cross-body crossings.

◆ invertedCellDetection

R2Bool R2SoftRecoverySettings::invertedCellDetection

Detect inverted cells to support self-contact recovery.

◆ overlapConstraintPace

R2Real R2SoftRecoverySettings::overlapConstraintPace

Velocity-change limit per step, as a multiple of recoveryPace.

◆ overlapConstraints

R2Bool R2SoftRecoverySettings::overlapConstraints

Enable intersection-volume constraints for overlapping closed surfaces.

◆ overlapEdgeStandDown

R2Bool R2SoftRecoverySettings::overlapEdgeStandDown

Disable 3D closed-surface edge constraints where overlap constraints take over.

◆ overlapKeptDepth

R2Real R2SoftRecoverySettings::overlapKeptDepth

Overlap depth retained by recovery, as a fraction of the pair's contact skins.

◆ overlapMultiVolume

R2Bool R2SoftRecoverySettings::overlapMultiVolume

Use spatially split overlap-volume constraints.

◆ overlapNormalPush

R2Bool R2SoftRecoverySettings::overlapNormalPush

Use the overlap normal for recovery pushes.

◆ overlapPatchConstraints

uint32_t R2SoftRecoverySettings::overlapPatchConstraints

Per-point constraints inside overlap patches: R2_SOFT_PATCH_CONSTRAINTS_KEEP, _STAND_DOWN or _ALONG_NORMAL.

◆ overlapPatience

uint32_t R2SoftRecoverySettings::overlapPatience

Recovery progress patience in steps.

◆ overlapProgressMargin

R2Real R2SoftRecoverySettings::overlapProgressMargin

Relative overlap-volume decrease that counts as recovery progress.

◆ overlapRigid

R2Bool R2SoftRecoverySettings::overlapRigid

Enable intersection-volume constraints against rigid colliders.

◆ overlapSelfRegions

R2Bool R2SoftRecoverySettings::overlapSelfRegions

Enable recovery of self-intersection regions.

◆ overlapSkinVolume

R2Bool R2SoftRecoverySettings::overlapSkinVolume

Measure overlap on contact-skin surfaces rather than bare geometry.

◆ overlapSkipSelfTangled

R2Bool R2SoftRecoverySettings::overlapSkipSelfTangled

Skip pair overlap constraints for self-crossed meshes.

◆ overlapSplit

uint32_t R2SoftRecoverySettings::overlapSplit

Cells per tangent axis of the multi-volume grid.

◆ recoveryPace

R2Real R2SoftRecoverySettings::recoveryPace

Maximum recovery rate in length units per second, scaled by lengthUnit.

◆ selfCrossingDetection

R2Bool R2SoftRecoverySettings::selfCrossingDetection

Detect surface self-crossings each step.

◆ selfStandDown

R2Bool R2SoftRecoverySettings::selfStandDown

Disable contacts on tangled features so elasticity can untangle them.


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