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

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

#include <rapier.h>

Data Fields

struct R2SpringCoefficients edgeSoftness
 Spring coefficients for structural edge constraints.
struct R2SpringCoefficients bendSoftness
 Spring coefficients for bending edges and dihedrals.
struct R2SpringCoefficients volumeSoftness
 Spring coefficients for cell and global volume constraints.
struct R2SpringCoefficients shapeMatchingSoftness
 Spring coefficients for shape-matching constraints.
R2Real youngModulus
 Elastic modulus: force per area in 3D, force per length in 2D; nonnegative.
R2Real poissonRatio
 Poisson ratio for elastic cells, in [0, 0.5).
R2Real elasticDampingRatio
 Nonnegative damping ratio of elastic cells.
R2Real plasticYield
 Cell strain threshold for plastic flow; zero disables plasticity.
R2Real plasticCreep
 Nonnegative rate per second at which excess cell strain becomes permanent.
R2Real plasticMax
 Maximum accumulated cell plastic stretch, measured by the norm of P - I.
R2Real deformationDamping
 Rate per second pulling particle velocities toward best-fit rigid motion; zero disables it.
R2Real edgePlasticYield
 Edge strain threshold for plastic flow; zero disables plasticity.
R2Real edgePlasticCreep
 Nonnegative rate per second at which excess edge strain becomes permanent.
R2Real edgePlasticMax
 Maximum permanent edge-length change as a fraction of its initial length.
uint32_t edgePlasticFlow
 Plastic flow direction: R2_SOFT_EDGE_PLASTIC_FLOW_BOTH, _COMPRESSION or _TENSION.
struct R2OptionalReal tearStrain
 Optional strain threshold for tearing; disabled means no strain-based tearing.
struct R2OptionalReal tearForce
 Optional tensile edge-force threshold for tearing.
R2Real tearSmoothing
 Exponential load-smoothing time constant in seconds; zero disables smoothing.
R2Real interiorStrength
 Tear-threshold multiplier for undamaged interior elements.
uint32_t maxTearsPerStep
 Maximum ordinary edge tears per step; edges above twice their threshold bypass the limit.
struct R2OptionalU32 minPiece
 Optional minimum particle count of tear pieces.

Detailed Description

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

No destructor.

Field Documentation

◆ bendSoftness

struct R2SpringCoefficients R2SoftBodyMaterial::bendSoftness

Spring coefficients for bending edges and dihedrals.

◆ deformationDamping

R2Real R2SoftBodyMaterial::deformationDamping

Rate per second pulling particle velocities toward best-fit rigid motion; zero disables it.

◆ edgePlasticCreep

R2Real R2SoftBodyMaterial::edgePlasticCreep

Nonnegative rate per second at which excess edge strain becomes permanent.

◆ edgePlasticFlow

uint32_t R2SoftBodyMaterial::edgePlasticFlow

Plastic flow direction: R2_SOFT_EDGE_PLASTIC_FLOW_BOTH, _COMPRESSION or _TENSION.

◆ edgePlasticMax

R2Real R2SoftBodyMaterial::edgePlasticMax

Maximum permanent edge-length change as a fraction of its initial length.

◆ edgePlasticYield

R2Real R2SoftBodyMaterial::edgePlasticYield

Edge strain threshold for plastic flow; zero disables plasticity.

◆ edgeSoftness

struct R2SpringCoefficients R2SoftBodyMaterial::edgeSoftness

Spring coefficients for structural edge constraints.

◆ elasticDampingRatio

R2Real R2SoftBodyMaterial::elasticDampingRatio

Nonnegative damping ratio of elastic cells.

◆ interiorStrength

R2Real R2SoftBodyMaterial::interiorStrength

Tear-threshold multiplier for undamaged interior elements.

◆ maxTearsPerStep

uint32_t R2SoftBodyMaterial::maxTearsPerStep

Maximum ordinary edge tears per step; edges above twice their threshold bypass the limit.

◆ minPiece

struct R2OptionalU32 R2SoftBodyMaterial::minPiece

Optional minimum particle count of tear pieces.

◆ plasticCreep

R2Real R2SoftBodyMaterial::plasticCreep

Nonnegative rate per second at which excess cell strain becomes permanent.

◆ plasticMax

R2Real R2SoftBodyMaterial::plasticMax

Maximum accumulated cell plastic stretch, measured by the norm of P - I.

◆ plasticYield

R2Real R2SoftBodyMaterial::plasticYield

Cell strain threshold for plastic flow; zero disables plasticity.

◆ poissonRatio

R2Real R2SoftBodyMaterial::poissonRatio

Poisson ratio for elastic cells, in [0, 0.5).

◆ shapeMatchingSoftness

struct R2SpringCoefficients R2SoftBodyMaterial::shapeMatchingSoftness

Spring coefficients for shape-matching constraints.

◆ tearForce

struct R2OptionalReal R2SoftBodyMaterial::tearForce

Optional tensile edge-force threshold for tearing.

◆ tearSmoothing

R2Real R2SoftBodyMaterial::tearSmoothing

Exponential load-smoothing time constant in seconds; zero disables smoothing.

◆ tearStrain

struct R2OptionalReal R2SoftBodyMaterial::tearStrain

Optional strain threshold for tearing; disabled means no strain-based tearing.

◆ volumeSoftness

struct R2SpringCoefficients R2SoftBodyMaterial::volumeSoftness

Spring coefficients for cell and global volume constraints.

◆ youngModulus

R2Real R2SoftBodyMaterial::youngModulus

Elastic modulus: force per area in 3D, force per length in 2D; nonnegative.


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