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

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

#include <rapier.h>

Data Fields

struct R3SpringCoefficients edgeSoftness
 Spring coefficients for structural edge constraints.
struct R3SpringCoefficients bendSoftness
 Spring coefficients for bending edges and dihedrals.
struct R3SpringCoefficients volumeSoftness
 Spring coefficients for cell and global volume constraints.
struct R3SpringCoefficients shapeMatchingSoftness
 Spring coefficients for shape-matching constraints.
R3Real youngModulus
 Elastic modulus: force per area in 3D, force per length in 2D; nonnegative.
R3Real poissonRatio
 Poisson ratio for elastic cells, in [0, 0.5).
R3Real elasticDampingRatio
 Nonnegative damping ratio of elastic cells.
R3Real plasticYield
 Cell strain threshold for plastic flow; zero disables plasticity.
R3Real plasticCreep
 Nonnegative rate per second at which excess cell strain becomes permanent.
R3Real plasticMax
 Maximum accumulated cell plastic stretch, measured by the norm of P - I.
R3Real deformationDamping
 Rate per second pulling particle velocities toward best-fit rigid motion; zero disables it.
R3Real edgePlasticYield
 Edge strain threshold for plastic flow; zero disables plasticity.
R3Real edgePlasticCreep
 Nonnegative rate per second at which excess edge strain becomes permanent.
R3Real edgePlasticMax
 Maximum permanent edge-length change as a fraction of its initial length.
uint32_t edgePlasticFlow
 Plastic flow direction: R3_SOFT_EDGE_PLASTIC_FLOW_BOTH, _COMPRESSION or _TENSION.
struct R3OptionalReal tearStrain
 Optional strain threshold for tearing; disabled means no strain-based tearing.
struct R3OptionalReal tearForce
 Optional tensile edge-force threshold for tearing.
R3Real tearSmoothing
 Exponential load-smoothing time constant in seconds; zero disables smoothing.
R3Real 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 R3OptionalU32 minPiece
 Optional minimum particle count of tear pieces.

Detailed Description

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

No destructor.

Field Documentation

◆ bendSoftness

struct R3SpringCoefficients R3SoftBodyMaterial::bendSoftness

Spring coefficients for bending edges and dihedrals.

◆ deformationDamping

R3Real R3SoftBodyMaterial::deformationDamping

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

◆ edgePlasticCreep

R3Real R3SoftBodyMaterial::edgePlasticCreep

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

◆ edgePlasticFlow

uint32_t R3SoftBodyMaterial::edgePlasticFlow

Plastic flow direction: R3_SOFT_EDGE_PLASTIC_FLOW_BOTH, _COMPRESSION or _TENSION.

◆ edgePlasticMax

R3Real R3SoftBodyMaterial::edgePlasticMax

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

◆ edgePlasticYield

R3Real R3SoftBodyMaterial::edgePlasticYield

Edge strain threshold for plastic flow; zero disables plasticity.

◆ edgeSoftness

struct R3SpringCoefficients R3SoftBodyMaterial::edgeSoftness

Spring coefficients for structural edge constraints.

◆ elasticDampingRatio

R3Real R3SoftBodyMaterial::elasticDampingRatio

Nonnegative damping ratio of elastic cells.

◆ interiorStrength

R3Real R3SoftBodyMaterial::interiorStrength

Tear-threshold multiplier for undamaged interior elements.

◆ maxTearsPerStep

uint32_t R3SoftBodyMaterial::maxTearsPerStep

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

◆ minPiece

struct R3OptionalU32 R3SoftBodyMaterial::minPiece

Optional minimum particle count of tear pieces.

◆ plasticCreep

R3Real R3SoftBodyMaterial::plasticCreep

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

◆ plasticMax

R3Real R3SoftBodyMaterial::plasticMax

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

◆ plasticYield

R3Real R3SoftBodyMaterial::plasticYield

Cell strain threshold for plastic flow; zero disables plasticity.

◆ poissonRatio

R3Real R3SoftBodyMaterial::poissonRatio

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

◆ shapeMatchingSoftness

struct R3SpringCoefficients R3SoftBodyMaterial::shapeMatchingSoftness

Spring coefficients for shape-matching constraints.

◆ tearForce

struct R3OptionalReal R3SoftBodyMaterial::tearForce

Optional tensile edge-force threshold for tearing.

◆ tearSmoothing

R3Real R3SoftBodyMaterial::tearSmoothing

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

◆ tearStrain

struct R3OptionalReal R3SoftBodyMaterial::tearStrain

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

◆ volumeSoftness

struct R3SpringCoefficients R3SoftBodyMaterial::volumeSoftness

Spring coefficients for cell and global volume constraints.

◆ youngModulus

R3Real R3SoftBodyMaterial::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: