PhysX Glue Test: Distance Binding Rollout

Enable Spring Force - When on, the meanings of Minimum Distance Limit and Maximum Distance Limit change. If the distance between binding anchors falls between the specified minimum and maximum values, no additional force is applied to the binding particles.

If the distance becomes less than the minimum (when Minimum Distance Limit is on) or greater than the maximum (when Maximum Distance Limit is on), then PhysX Glue attempts to restore the separation to the specified limits by exerting force to move particles apart or together. The magnitude of the force is determined by the Spring Coef setting and the relative deviation of the current binding length from minimum or maximum. That is, the greater the deviation from the specified minimum or maximum distance, the greater the force applied. The dynamics of the force are also defined by Damper Coef setting.

  • Adjust By Particle Mass - When on, the force is also multiplied by particle mass to have consistent acceleration values regardless of the particle mass.

    • Spring Coef(ficient) - Acts as a multiplier to the calculated force required to restore the specified binding distance range.

    • Damper Coef(ficient) - Acts as a damping force, slowing down particle motion when the simulation attempts to restore the specified binding range. If, when using Spring Force, the particles seem to be snapping around too quickly, try increasing this value.

 

Example 1:  PhysXGlueDistance_AdjustByParticleMass.zip

 

Example 2:  PhysXGlueDistance_SpringCoef.zip

 

Example 3:  PhysXGlueDistance_DamperCoef.zip