Contact
SuperDex Physics uses a compliant contact model, which can be interpreted as either a penalty regularization of an inequality constraint or as a reduced model of local surface deformation. This approach provides smooth, differentiable contact forces suitable for implicit time integration and optimization-based solvers, and provides spatial distributions of contact traction fields acting on the surfaces of bodies, rather than just point-contact force resultants. Compliant contact allows for some interpenetration of colliding bodies, which is evaluated using signed distance fields (SDFs) and generalizations thereof defined on their geometries.
Contact Roles
Every contact interaction involves two actors playing complementary roles:
- Collider – The actor that provides a queryable signed distance field (SDF) used to determine penetration depth and contact normals.
- Colliding – The actor whose surface is discretized with quadrature sample points. Contact traction is computed at these sample locations using the formulation detailed below by querying the collider's SDF.
The separation of roles allows SuperDex Physics to handle asymmetric contact configurations. For example, a deformable body (colliding) can be pressed against a rigid obstacle (collider) without requiring the costlier evaluation of an SDF on deforming geometry. However, a single actor can serve both roles simultaneously. If two actors have colliders, and no Contact Filtering is applied in either direction, this results in two passes of contact force computation, whose results are summed. However, even a single pass results in balanced forces applied to both bodies.
Collider Representations
The colliderType / collider_type setting selects how an actor supplies distance fields. Its values are defined by the ColliderType enum:
| Setting | Representation | Notes |
|---|---|---|
Auto | Actor- and shape-dependent | Selects analytic fields for supported shapes, Sdf for rigid mesh and soft actors, and PointCloud for shell and rod actors. |
None | No collider | Disables only the collider role; the actor may still provide colliding samples. |
Sphere | Analytic sphere SDF | Exact and inexpensive. |
Box | Analytic box SDF | Exact for box geometry. |
Plane | Analytic halfspace SDF | Infinite plane, commonly used for ground and boundaries. |
Mesh | Triangle-mesh distance queries | Experimental; can be prohibitively slow during simulation. For mesh-backed actors, prefer Auto or Sdf unless measurements justify using Mesh. Only supported for rigid actors and articulated links. |
Sdf | Precomputed grid SDF | Supports complex geometry; approximates the exact SDF using trilinear interpolation, with a resolution-memory trade-off. |
PointCloud | Spherical SDFs about material points | Quadrature discretization of the double-integral generalization below; interacts only with other point-cloud actors. |
Grid SDF construction is controlled by GridSdfParams (C++, Python): resolutionMode / resolution_mode selects the reference length used to size voxels, resolutionDelta / resolution_delta scales that length per axis, minGridResolution / min_grid_resolution sets the minimum voxel count per axis, and boundaryPaddingDist / boundary_padding_dist extends the grid beyond the shape bounds.
Default Roles by Actor Type
| Actor Type | Colliding (surface samples) | Collider |
|---|---|---|
| Rigid (dynamic) | Yes | Yes (colliderType = Auto, which resolves to Sdf for mesh shapes) |
| Rigid (static) | No | Yes (colliderType = Auto, which resolves to Sdf for mesh shapes) |
| Soft | Yes | No (set colliderType to Sdf or Auto to enable a grid SDF mapped by the deformation; this is experimental and may be slow) |
| Articulated links | Yes (dynamic links only) | Yes by default; each link has its own colliderType, which defaults to Auto |
| Shell | Yes | Yes (colliderType = PointCloud by default) |
| Rod | Yes | No (set colliderType to PointCloud or Auto to enable) |
Contact Filtering
Filtering controls which ordered actor interactions are eligible. Each actor has an arbitrary string contact layer, assigned at creation or changed with Actor::SetContactLayer (set_contact_layer in Python).
The C++ Scene API and corresponding Python methods provide four controls:
Scene::EnableLayerContactAsymmetric(layerA, layerB, enable, error)(enable_layer_contact_asymmetricin Python) controls the ordered interaction withlayerAcolliding againstlayerBas collider. It does not change the reverse direction.Scene::EnableLayerContactSymmetric(layerA, layerB, enable, error)(enable_layer_contact_symmetricin Python) applies the setting to both directions.Scene::EnableActorContactAsymmetric(A, B, enable, includeNestedActors, error)(enable_actor_contact_asymmetricin Python) controls an additional gate for the ordered actor pair.Scene::EnableActorContactSymmetric(A, B, enable, includeNestedActors, error)(enable_actor_contact_symmetricin Python) applies that actor-pair gate in both directions.
Both layer-level and actor-pair contact must be enabled for an interaction to occur; actor-pair settings cannot re-enable a layer-disabled interaction. Actor-pair filtering is useful when constrained actors overlap and would otherwise generate contact forces that oppose the constraint. Asymmetric filtering specifies which actor supplies samples and which supplies the collider field.
When includeNestedActors is IncludeNestedActors::No, these APIs affect only the exact handles passed. With IncludeNestedActors::Yes, a parent actor resolves to the parent plus its nested actors, and the setting is applied to every ordered pair in the cross-product of the two resolved handle sets. No pair outside that cross-product is affected. If the sets overlap, overlap pairs, including self-pairs, are affected. Python exposes the containing IncludeNestedActors enum.
SuperDex Physics automatically disables contact between adjacent links when articulated or soft-skinned actors are created. A later actor-contact setting can override that automatic disable for any pair in the resolved sets. In particular, enabling contact between a parent and itself with IncludeNestedActors::Yes enables contact between its nested actors, including adjacent links, unless a later setting disables those pairs again.
Formulation
We present the compliant contact formulation in the continuous setting first, before elaborating on the discretization used in simulations.
Continuous Formulation
The continuous contact model combines a conservative normal penalty with dissipative friction and damping. The pairwise penalty energies contribute to the total conservative potential in the system dynamics, while the dissipative tractions derive from a state-dependent dissipation potential .
Contact Kinematics
Let denote the motion, or current position, of material point on colliding actor . Similarly, let denote the collider motion and
its deformation gradient. Collider supplies a (possibly approximate) SDF in its reference coordinates and, where the motion is locally invertible, the current-to-reference map . Its spatial SDF is
This construction covers the standard Plane, Sphere, Box, Mesh, and Sdf collider types. The nonlocal PointCloud model is the exception described under double-integral generalization.
The trajectory of the sample on , expressed in the reference coordinates of , is
The collider-space relative contact velocity is its total derivative holding the colliding material point fixed:
where and are the world-space velocities of the spatially-coincident material points and on the two bodies.
For rigid motions, is a rotation, and the collider motion exactly maps an SDF defined on the reference configuration to another SDF on the current configuration. However, there is usually still some approximation if the reference SDF is precomputed on a grid and interpolated. For a soft actor with an Sdf collider, is a non-rigid current-to-reference map. It may change lengths and angles, and it may be undefined at some query points, which are then rejected. The spatial field is generally not an exact SDF (even if is), and the magnitude of can be affected by local stretching of the collider.
Frictionless Normal Penalty
For colliding actor and collider , the conservative contact potential is a surface integral over the reference boundary of :
where the energy density per unit reference area is
Here, is the penalty coefficient. The ramp activation has smoothing half-width and contact threshold . Summing over active ordered actor pairs gives the contact contribution to .
Let . SuperDex Physics uses the following -continuous smoothed ramp:
The penalty is therefore zero when , transitions smoothly over , and is linear in penetration below that interval. A positive activates contact slightly outside the collider's zero level set.
Friction and Damping
Normal/Tangential Split
Dissipative contact tractions depend on the conservative normal response. The world-frame nominal normal traction on , per unit reference area of , is
where the uppercase denotes the traction conjugate to the collider-reference position :
Here, is the raw reference-field gradient and is its scalar coefficient in . Defining , we have . Grid interpolation can make nonunit, so is not generally the Euclidean magnitude of . For an exact reference SDF, and . The physical spatial gradient is likewise , which may be nonunit under a non-rigid pullback.
The relative velocity from contact kinematics is expressed in the same coordinates. Using the default collider-field direction , define
The non-default setting frictionWithColliderNormal = false replaces in the above with the unit vector along , where is the colliding actor's outward-facing unit normal.
For exact contact between smooth surfaces, we expect . However, for compliant contact with SDFs, this relation is only approximate. Large deviations from this may lead to spurious contact tractions, so significantly misaligned contacts can be rejected entirely, and the dissipative response of accepted contacts can be attenuated as the rejection threshold is approached. When the colliding-surface normal is available, define its alignment with the collider field as . Contacts are rejected around , where is the collider's maximum-normal-alignment parameter. So that the contact traction does not jump at the threshold, the penalty traction, and with it the normal load of the dissipative response, is scaled by the gate , with the smoothstep , , and the band width , where is the collider's alignment smoothing fraction. The band is centered at the threshold: falls from 1 at to at and to 0 at the cutoff , beyond which contacts are rejected. or rejects contacts abruptly when instead (), and so do explicit normals, whose alignment is that of the stage start. The gate is not differentiated: the residual and its Jacobian treat it as a constant. For an accepted contact, the dissipative alignment factor is
when alignment fading is enabled and ; otherwise, . When both and are unit, and therefore , fading dissipation from full strength for opposing normals () to zero at the cutoff (). The raw vectors are used, so grid interpolation or a non-rigid pullback can produce a factor above one. When the colliding normal is unavailable, as for shells and rods, alignment rejection and fading are disabled.
Traction Model
The dissipative traction contributions consist of Coulomb and viscous friction in the tangential direction, and separate normal viscous damping that affects restitution behavior in impacts. The exact Coulomb law is set-valued in the static regime, so SuperDex Physics regularizes it. By default, contacts with rigid colliders use an elasto-plastic regularization, which replaces the Coulomb term with a stored energy and a slip rule, so that objects held by friction do not creep. The other contacts use a viscous regularization, which expresses the full dissipative response in terms of a dissipation potential.
Viscous Regularization
Coulomb friction is modeled using a viscous regularization of the static regime, similar to that of Li et al. (2020), which allows the full dissipative response to be expressed in terms of the dissipation potential
where is the effective dissipative normal-load coefficient, is the Coulomb friction coefficient, is the viscous friction coefficient, is the normal viscous damping coefficient, and is the regularized ramp of width
in which the falloff velocity is the maximum slipping speed allowed within the nominally static friction regime, at which friction reaches the Coulomb limit. With , the collider-reference contributions are
and
Since Coulomb friction acts only through slip, a constant tangential load below the Coulomb limit is balanced at a nonzero slipping speed , so objects held by friction creep. Smaller falloff velocities reduce creep, but may degrade stability.
The total collider-reference traction and corresponding world-frame nominal traction on are
Although written simply as , the dissipation potential depends on position state as well as relative velocity. Whether its stage-discrete force derives from an incremental potential therefore depends on how its position-dependence is evaluated, as discussed under stage-discrete dissipation.
Elasto-Plastic Regularization
The elasto-plastic regularization regularizes the static regime of Coulomb friction by displacement instead of velocity, which holds a tangential load below the Coulomb limit without slip. Contacts use it where it is supported (see below) if they prefer it, through the preferElastoPlasticFriction field of ContactParams (C++, Python), true by default, and the viscous regularization otherwise. For example, the contacts of an actor use the viscous regularization with:
params = actor.get_contact_params()
params.prefer_elasto_plastic_friction = False
actor.set_contact_params(params)
The tangential displacement is measured from an anchor, a material point of the collider in its reference coordinates:
The Coulomb term derives from the stored energy density
where is the ramp above, with the presliding displacement as its width in displacement. With the normal load and the friction plane held fixed, the Coulomb traction is
The anchor follows a slip rule that keeps : it stays in place while (stick), and is dragged along by the contact at the distance otherwise (slip):
Within the presliding displacement, the Coulomb traction is an elastic restoring traction. It reaches the Coulomb limit at , where the ramp saturates, so the contact slips with the full Coulomb traction. Unlike with the viscous regularization, the Coulomb term is therefore not purely dissipative: it stores the elastic energy , released when the load is removed, so a held object can spring back toward its anchors, and it dissipates the power only during slip. Within the presliding displacement it adds no damping: a held contact is damped tangentially only by viscous friction, zero by default, and by the time integration. Normal damping acts along the normal. Viscous friction and normal damping are unchanged: keeps their terms and drops . The time discretization of the anchor is described under stage-discrete dissipation.
Smaller presliding displacements reduce presliding motion and spring-back, but stiffen the tangential response, which may cost nonlinear solver iterations.
Elasto-plastic friction has the following scope and requirements:
- It applies to contacts with rigid colliders, static or dynamic, including articulated links. Contacts with deformable colliders, i.e., soft actors with an
Sdfcollider andPointCloudcolliders, use the viscous regularization. - It requires an integration method whose step ends at its last stage:
BackwardEuler,BDF2,BDF3,DIRK22, orDIRK33. With other integration methods, all contacts use the viscous regularization. - The anchors of an actor's contacts, and those of other actors' contacts on it, are part of its history, which setters that change its state discontinuously invalidate (see
Actor): e.g., placing it or setting its velocity, including any velocity of a static actor. Its contacts then start the next step without elastic pre-load.SetRootTransformalone on a static actor moves it over the next step and keeps the anchors on it, while a static actor given a velocity every step, like a conveyor belt, never builds pre-load, so contacts on it creep as with the viscous regularization, with falloff velocity for the stage step : with backward Euler (the default falloff velocity at a 10 ms step), and with BDF2 at a steady step. - Anchors are part of the captured scene state.
Scene::UpdateQueriesreproduces the forces of the last step exactly withBackwardEuler,BDF2, andBDF3, if the scene has not been modified since the last step (see its API reference).
The development of the elasto-plastic friction model took inspiration from the contribution of Senua Media.
Restitution Behavior of Rigid Collisions
The normal viscous damping corresponds to the impact model of Hunt and Crossley (1975), applying a viscous force that is proportional to the elastic normal force from the penalty stiffness. For rigid bodies colliding at a point aligned with their centers of mass, this leads to a velocity-dependent coefficient of restitution (CoR), , defined as the ratio of post-impact speed to pre-impact relative speed . Hunt and Crossley's original analysis provided the formula in the nearly-elastic limit of . In the opposite limit of , , i.e., the rebound velocity is approximately the inverse of . The damping coefficient for general is identified as the solution to an implicit relation by Alaci et al. (2021), but it has no closed-form expression. The rational approximation
provides an explicit formula that holds to high accuracy and captures the two limits mentioned above. It is recommended for calibrating in practice, where approximation error from this formula will typically be smaller than discretization error in the simulation. This formula can also be inverted in closed form to estimate the effective CoR corresponding to a given damping coefficient and impact velocity. For deformable bodies, restitution behavior is expected to depend mainly on the bulk elasticity and stiffness damping properties, not damping of the contact formulation.
This restitution behavior is a property of the continuous-time dynamics of the formulation and is not guaranteed to be reproduced with discrete time-stepping. Observing it in practice typically requires at least second-order time integration (e.g., the C++ IntegrationMethod::BDF2 or corresponding Python IntegrationMethod value). The time-step size must also be sufficiently small to resolve the contact event over several steps.
Contact Parameter Combination
For a contact pair, friction and damping coefficients are the geometric means of the actors' values. The penalty coefficient, friction falloff velocity, and presliding displacement are also geometric means when both actors are dynamic, but are taken from the colliding actor when the collider is static. A pair prefers elasto-plastic friction only if both actors do, also with a static collider. Other contact parameters, including the smoothing distance and contact threshold, are taken from the collider.
The geometric-mean heuristic for combining per-actor contact parameters reduces the dimensionality of a scene's parameter space, but it can limit precise calibration of quantities such as friction coefficients, which are properties of material pairs rather than individual materials. When the parameter-combination heuristic is insufficient, use Scene::SetContactPairParamsOverride / set_contact_pair_params_override with a ContactPairParamsOverride (C++, Python) to override the combined penalty coefficient, elasto-plastic friction preference, friction falloff velocity, presliding displacement, viscous and Coulomb friction coefficients, or normal viscous damping coefficient for an exact unordered actor pair. Unset fields retain the normal combination rule. Setting another override replaces the pair's complete override; it does not merge with the previous value.
scene.set_contact_pair_params_override(
actor_a.get_handle(),
actor_b.get_handle(),
sdp.ContactPairParamsOverride(coulomb_friction_coefficient=0.8),
)
The corresponding Clear, Has, and Get methods manage the stored override. Like the single-actor setter Actor::SetContactParams / set_contact_params, the pair-override setter applies only to the exact actors passed; it does not expand parent actors to their nested actors. This differs from actor-pair contact filtering, which includes nested actors by default.
Double-Integral Generalization
The PointCloud collider has no single field . Instead, each material point acts as a moving-sphere collider with center , radius , and SDF
where arguments to are dropped for brevity. Each sphere field follows only the translation of its interpolated center, with no pointwise deformation gradient, local material rotation, stretch, or rod twist.
The conservative contact potential of one such sphere is
The point-cloud potential integrates these single-collider potentials over the collider geometry:
Here, is the nonlocal interaction range and is the dimension of . The factor compensates for the units of , so the point-cloud potential has the same units as each .
PointCloud colliders discretize the outer integral with quadrature over . For each , the conservative normal traction from that moving-sphere collider supplies the normal-load coefficient used to compute its friction and damping. The factor and the -quadrature weight multiply this complete conservative and dissipative contribution before summation; dissipation is not computed from a normal traction already integrated over .
The conservative normal force pair is central and therefore conserves angular momentum exactly. The tangential friction force pair instead has an moment arm, so angular momentum is not conserved exactly at finite . Under convergent refinement, this torque defect vanishes as the interaction range .
Point-cloud contact is evaluated only between actors that both use PointCloud. This is the only collider model that supports actor self-contact (). For self-contact, admissible pairs additionally satisfy in the reference configuration, where is a self-contact exclusion ratio parameter. See PointCloudColliderParams for these settings.
Discretization
Surface Quadrature
For the standard surface-contact case, the integral over is discretized using surface quadrature points and reference-area weights :
This discretization explains the asymmetric actor roles introduced above: actor must provide surface quadrature samples, while actor must provide a distance field that can be evaluated at their current positions. An actor may support either capability without supporting the other; for example, an infinite plane has an analytic SDF but no finite surface to sample. The asymmetry also makes contact filtering directional.
For rigid, soft, and articulated actors, the boundaryElementType / boundary_element_type parameter controls the quadrature rule on each surface face. Its values are defined by the ActorBoundaryElementType enum. Shells use the equivalent contactElementType parameter. Rod centerline contact also uses contactElementType, but with segment rules rather than the surface rules below:
| Setting | Quadrature Points per Face | Use Case |
|---|---|---|
P1Q1 | 1 | Fast, low-resolution contact |
P1Q3 (default) | 3 | Good balance of accuracy and performance |
P1Q6 | 6 | Higher accuracy for detailed contact |
Higher quadrature densities better resolve fine contact geometry and generally produce smoother forces, at the cost of additional distance-field evaluations.
Additional experimental quadrature rules (ExperimentalP1Q7, ExperimentalP1Q12, ExperimentalP1Q16) are available for advanced use cases. These rules may change or be removed in future releases.
Stage-Discrete Dissipation
At implicit stage , let and be the current and stage-start spatial positions of a sample on colliding actor . Let and be the current and stage-start pullback maps described under contact kinematics. The relative contact velocity, expressed in collider-reference coordinates, is
This is the endpoint finite-difference counterpart of the continuum total derivative at fixed . Both the spatial sample position and the collider pullback map are evaluated independently at the current and stage-start configurations. This uses the same stage-local state as the rest of the mechanical system. contributes to the incremental potential . However, the normal/tangential split makes position-state-dependent, so its potential contribution may be inconsistent with its contribution to the stage residual. Writing for the position state and for its reconstructed velocity,
Only the second term, , contributes to the residual, but may be nonzero. It is possible to recover consistency between the potential and residual by using explicit stage-start predictors to eliminate certain state-dependencies, similar to the treatment of Li et al. (2020). This may improve the performance of the nonlinear algebraic solver used for the implicit stage, but it can decrease accuracy and stability of the time integration at large time steps.
In , the Coulomb term of the viscous regularization contributes , where is the tangential displacement over the stage: a ramp in displacement whose width shrinks with the time step. The elasto-plastic regularization replaces it with , with no factor , measuring the tangential displacement from the anchor instead of from the stage start:
Its width is independent of the time step. The default presliding displacement, 1e-4 m, is the default falloff velocity over a 10 ms backward Euler step, so at that step size both regularizations ramp up friction over the same displacement; the other integration methods scale the stage step . Although is stored rather than dissipated, its normal load and friction plane depend on the position state like those of , and the settings below apply to both.
Anchors are a record of history, so they stay fixed through every stage of a step, and advance once per step, from the contacts at the end of the step, by radial return, the discrete counterpart of the slip rule: an anchor stays in place while (stick), and otherwise follows the contact at the distance (slip). The radial return scales the whole displacement of the contact from its anchor, of which is the tangential part, by . A sticking anchor therefore stays at its material point of the collider even if the friction normal turns, so sticking contacts do not creep under a changing normal or round-off; and the normal part of , penalty compression rather than presliding, shrinks while the contact slips instead of accumulating. Each contact sample keeps one anchor per collider. A new contact takes its anchor at its stage-start position. A contact loses its anchor when it separates beyond the contact threshold at the end of a step, when the alignment of its normals rejects it (maxAlignmentNormals), when the pair has no Coulomb friction, when the pair stops preferring elasto-plastic friction, or when the scene switches to an integration method that does not allow it.
Two Boolean fields in ExperimentalEvalParams (C++, Python) control the time levels used to evaluate the dissipative terms:
explicitNormalsselects the geometric data used for dissipation. Whentrue, SuperDex Physics uses stage-start normals, alignment, and friction plane, and retains stage-start contacts alongside contacts detected in the current configuration. Whenfalse(default), it uses current geometry and reconstructs the stage-start distance to first order with the current field gradient.implicitNormalForceForDissipationselects the normal load used to scale dissipation. Whenfalse(default), SuperDex Physics uses the true or reconstructed stage-start normal-load scalar. Whentrue, it uses the current normal-load scalar.
Separately, fadeFriction enables alignment-based attenuation of dissipative terms and defaults to true. Its state dependence is frozen when explicitNormals = true; with current normals it is another reason the default residual is not the gradient of the assembled scalar dissipation energy.
Their supported combinations are:
explicitNormals | implicitNormalForceForDissipation | Evaluation | Incremental-potential status |
|---|---|---|---|
true | false | Stage-start normals, alignment, friction plane, and true stage-start normal load. | The dissipative residual is exactly the gradient of . |
false (default) | false (default) | Current geometry and reconstructed stage-start normal load. | Does not derive from an incremental potential. |
false | true | Current geometry and current load. | Does not derive from an incremental potential. |
true | true | Unsupported. | Unsupported. |
For PointCloud colliders discretizing the double-integral generalization, each collider-point sphere's normal direction varies on the scale of the nonlocal interaction range , which is typically small. Consequently, stage-start normals and normal loads can be poor predictors. For frictional point-cloud contact, current-state evaluation of both quantities (explicitNormals = false and implicitNormalForceForDissipation = true) is therefore recommended for improved accuracy and stability. As indicated in the table above, this combination does not produce a dissipative residual that is the exact gradient of .
Contact Parameter Reference
ContactParams
ContactParams (C++, Python) configures contact response per actor. The following table provides a correspondence between the C++ API names of parameters and the mathematical notation used in this document. Python uses the corresponding snake_case property names.
| Parameter | C++ Type | Default | Units | Description |
|---|---|---|---|---|
penaltyCoefficient | real | 1e9 | Pa/m | Penalty coefficient . Higher values reduce penetration but may degrade stability. |
penaltySmoothingHalfDistance | real | 0.005 | m | Smoothing half-width of the ramp . Larger values improve stability but may increase penetration. |
penaltyThresholdDefault | real | 0.001 | m | Default contact threshold at which the penalty activates. |
penaltyThresholdExtraPadding | real | 0 | m | Experimental. Additional contribution to when the colliding actor uses None or PointCloud; helps prevent tunneling through thin actors. |
collidingPenaltyThresholdPadding | real | 0 | m | Experimental. Additional contribution to taken from the colliding actor, for any collider except PointCloud colliders and SDF colliders of soft actors; helps prevent tunneling of thin or coarsely sampled colliding actors. |
frictionWithColliderNormal | bool | true | -- | Experimental. Use the collider-field direction for the normal/tangential split; when false, use the unit vector along where available. |
maxAlignmentNormals | real | 0 | -- | Experimental. Maximum-normal-alignment parameter . Contact is rejected beyond the cutoff (see above), with for the abrupt gate. Valid range: [-1, 1]. |
alignmentSmoothingFraction | real | 0.1 | -- | Experimental. Alignment smoothing fraction . The penalty traction fades out over the alignments . With the defaults (, ), that is between unit normals at 92.9° and 87.1°. Valid range: [0, 1]. |
viscousFrictionCoefficient | real | 0 | s/m | Tangential viscous friction coefficient . |
coulombFrictionCoefficient | real | 0.5 | -- | Coulomb friction coefficient . |
preferElastoPlasticFriction | bool | true | -- | Experimental. Prefer the elasto-plastic regularization of Coulomb friction to the viscous one, where it is supported. |
frictionFalloffVel | real | 0.01 | m/s | Experimental. Falloff velocity , the ramp width of the viscous regularization of Coulomb friction. |
preslidingDisplacement | real | 1e-4 | m | Presliding displacement , the ramp width of the elasto-plastic regularization. |
normalViscousDampingCoefficient | real | 0 | s/m | Normal viscous damping coefficient , which controls velocity-dependent restitution. |
distanceErrorBound | real | 0 | m | Experimental. Extra collider bounding-volume padding for approximate distance fields. |
collidingPenaltyLengthScale | real | 1 | m | Experimental. Penalty correction scale for contact integrated over lower-dimensional colliding manifolds; always taken from the colliding actor. |
PointCloudColliderParams
Point-cloud colliders are configured with additional parameters in PointCloudColliderParams (C++, Python).
| Parameter | Type | Default | Units | Description |
|---|---|---|---|---|
radius | real | 0.01 | m | Interaction range of the point-cloud contact potential. |
selfContactExclusionRatio | real | 1.5 | -- | Self-contact exclusion ratio . |
spatialHashLoadFactor | real | 0.0625 | -- | Load factor for the collision-detection spatial hash. |
selfContact | bool | false | -- | Whether to enable self-contact. |
colliderTriangleElementType | Optional<ActorBoundaryElementType> | nullopt | -- | Optional quadrature-based collider discretization for surfaces such as shells; otherwise uses mesh nodes. |
colliderSegmentElementType | Optional<ActorSegmentElementType> | nullopt | -- | Optional quadrature-based collider discretization for curves such as rods; otherwise uses mesh nodes. |
Contact Pipeline
The contact computation proceeds in three stages:
-
Broad-phase: axis-aligned bounding box (AABB) overlap tests rapidly cull actor pairs that cannot possibly be in contact, reducing the number of expensive narrow-phase evaluations.
-
Narrow-phase: Quadrature samples on the colliding actor are tested against the collider's distance field. Samples below the effective penalty threshold generate contact contributions.
-
Response: Contact forces and their Jacobians are computed from the penalty potential and assembled into the relevant actor or coupled solve system. Friction forces are combined with normal contact forces at this stage.
Examples
- Damping Parameter Sweep: demonstrates use of normal viscous damping. Python example:
examples/example_damping_sweep.py.
References
- S. Alaci, C. Filote, F.-C. Ciornei, O. V. Grosu, and M. S. Raboaca, An Analytical Solution for Non-Linear Viscoelastic Impact, Mathematics, 9(16), 1849, 2021.
- K. H. Hunt and F. R. E. Crossley, Coefficient of Restitution Interpreted as Damping in Vibroimpact, Journal of Applied Mechanics, 42(2), 440-445, 1975.
- M. Li, Z. Ferguson, T. Schneider, T. Langlois, D. Zorin, D. Panozzo, C. Jiang, and D. M. Kaufman, Incremental Potential Contact: Intersection- and Inversion-Free, Large-Deformation Dynamics, ACM Transactions on Graphics (SIGGRAPH), 39(4), Article 49, 2020.