|
Rapier C — 2D / f32 0.36.0+c.0
|
Plain configuration data; initialize defaults, edit, then apply. More...
#include <rapier.h>
Data Fields | |
| R2Real | dt |
| Simulation step duration in seconds. | |
| R2Real | minCcdDt |
| Minimum CCD substep duration in seconds. | |
| struct R2SpringCoefficients | contactSoftness |
| Spring coefficients for dynamic contact constraints. | |
| struct R2SpringCoefficients | staticContactSoftness |
| Spring coefficients for contacts against fixed bodies. | |
| R2Real | warmstartCoefficient |
| Scale applied to cached impulses when warmstarting. | |
| R2Real | lengthUnit |
| Typical world-space length of one meter; scales solver tolerances, not geometry. | |
| struct R2SoftBodiesSettings | softBodies |
| Soft-body integration and recovery settings. | |
| R2Real | normalizedAllowedLinearError |
| Allowed penetration divided by lengthUnit. | |
| R2Real | normalizedMaxCorrectiveVelocity |
| Maximum penetration-correction speed divided by lengthUnit. | |
| R2Real | normalizedPredictionDistance |
| Speculative-contact distance divided by lengthUnit. | |
| R2Real | normalizedMaxLinearVelocity |
| Maximum linear speed divided by lengthUnit. | |
| size_t | numSolverIterations |
| Number of solver substeps/iterations; must be positive. | |
| size_t | numInternalPgsIterations |
| PGS iterations per solver substep; must be positive. | |
| size_t | numInternalStabilizationIterations |
| Stabilization iterations after velocity solving. | |
| size_t | maxCcdSubsteps |
| Maximum CCD substeps; 0 disables all CCD for the world. | |
| R2Bool | contactClustering |
| Whether to cluster contacts for solving. | |
| R2Bool | contactRecycling |
| Whether to reuse nearby contacts between steps. | |
| R2Real | normalizedContactRecycleDistance |
| Contact recycling distance divided by lengthUnit. | |
| R2Bool | frictionInBiasPass |
| Whether to solve friction in the bias pass. | |
| R2Bool | warmstartJoints |
| Whether to warmstart joint constraints. | |
Plain configuration data; initialize defaults, edit, then apply.
No destructor.
| R2Bool R2IntegrationParameters::contactClustering |
Whether to cluster contacts for solving.
| R2Bool R2IntegrationParameters::contactRecycling |
Whether to reuse nearby contacts between steps.
| struct R2SpringCoefficients R2IntegrationParameters::contactSoftness |
Spring coefficients for dynamic contact constraints.
| R2Real R2IntegrationParameters::dt |
Simulation step duration in seconds.
| R2Bool R2IntegrationParameters::frictionInBiasPass |
Whether to solve friction in the bias pass.
| R2Real R2IntegrationParameters::lengthUnit |
Typical world-space length of one meter; scales solver tolerances, not geometry.
| size_t R2IntegrationParameters::maxCcdSubsteps |
Maximum CCD substeps; 0 disables all CCD for the world.
| R2Real R2IntegrationParameters::minCcdDt |
Minimum CCD substep duration in seconds.
| R2Real R2IntegrationParameters::normalizedAllowedLinearError |
Allowed penetration divided by lengthUnit.
| R2Real R2IntegrationParameters::normalizedContactRecycleDistance |
Contact recycling distance divided by lengthUnit.
| R2Real R2IntegrationParameters::normalizedMaxCorrectiveVelocity |
Maximum penetration-correction speed divided by lengthUnit.
| R2Real R2IntegrationParameters::normalizedMaxLinearVelocity |
Maximum linear speed divided by lengthUnit.
| R2Real R2IntegrationParameters::normalizedPredictionDistance |
Speculative-contact distance divided by lengthUnit.
| size_t R2IntegrationParameters::numInternalPgsIterations |
PGS iterations per solver substep; must be positive.
| size_t R2IntegrationParameters::numInternalStabilizationIterations |
Stabilization iterations after velocity solving.
| size_t R2IntegrationParameters::numSolverIterations |
Number of solver substeps/iterations; must be positive.
| struct R2SoftBodiesSettings R2IntegrationParameters::softBodies |
Soft-body integration and recovery settings.
| struct R2SpringCoefficients R2IntegrationParameters::staticContactSoftness |
Spring coefficients for contacts against fixed bodies.
| R2Real R2IntegrationParameters::warmstartCoefficient |
Scale applied to cached impulses when warmstarting.
| R2Bool R2IntegrationParameters::warmstartJoints |
Whether to warmstart joint constraints.