Elamur Research

Contact and friction simulation for computer graphics

Paper · 2021 · Sheldon Andrews and Kenny Erleben

Summary

When a box lands on a stack, a simulator has to decide where the surfaces meet, how hard they push against each other, and whether they stick or slide. Those decisions are coupled. A push at one corner can rotate a box and change the motion at its other corners. The amount of friction a surface can exert depends on how hard it is pressed against its neighbor. Andrews and Erleben’s SIGGRAPH course explains how a simulator turns these interactions into equations it can solve at each timestep, for objects ranging from rigid boxes to deformable meshes.

The authors start with an inequality: surfaces may separate, but they may not move through each other. The reaction at a contact can push the bodies apart, and it vanishes if they move apart on their own. These paired rules give rise to complementarity, a mathematical way to express which quantities can be positive together. Coulomb friction adds a bound on the sideways impulse and distinguishes sticking from sliding. The course derives several ways to represent that bound, from a faceted approximation that permits a linear complementarity formulation to a circular limit that preserves the classical planar friction law. A cone formulation permits convex optimization by changing the normal contact rule, a choice that can make rapidly sliding bodies lift apart.

The course follows the computation from collision geometry to numerical solution. It explains how spheres, boxes, triangle meshes, and signed distance fields supply contact points and normals, then shows how solvers use those inputs. Pivoting methods search for the variables that belong at their bounds. Projected iterations revise a guess in a sequence of small updates. Nonsmooth Newton methods recast the contact conditions as equations whose roots satisfy the original constraints. The authors also cover drift correction, friction that depends on the orientation of surface features, and penalty methods that use spring forces to oppose penetration.

The examples and comparisons show how much the behavior of a simulation depends on choices inside that pipeline. In a box-stack study discussed in the course, changing the order of otherwise identical updates substantially changes the number of iterations needed to reach the same residual. Other comparisons show that an apparently promising correction can raise the residual when it guesses the wrong set of active constraints. The course’s contribution is to relate such numerical behavior to the equations, collision geometry, and approximations that produce it.

Deep dive: Contact and friction simulation for computer graphics

Andrews and Erleben explain how computer graphics simulations detect contact, compute friction, and solve for the motion of rigid and deformable bodies. · about 45 minutes to read

The problem and its context

Why contacts have to be solved together

Suppose a box rests on a second box. Gravity acts on the upper box whether or not the two surfaces are touching. The support reaction is different. Its existence and magnitude depend on where the surfaces are, where they are trying to move, and what else is supporting or pushing them. If the lower box drops away, the upper box should follow its free motion. If the lower box stays put, the contact must supply enough of a reaction to support the upper one. If someone moves the upper box sideways, the same interface can resist that motion until the friction limit is reached.

A single contact already combines geometry and dynamics. The point where the reaction acts determines its turning effect. The normal, the direction perpendicular to the local contact plane, determines which component of motion would close the gap. The tangential directions determine how the simulator measures sliding. In a stack or an articulated assembly, there may be many such points. Reactions that are physically local can have consequences elsewhere because they change the motion of bodies shared by several contacts. In particular, a rigid body responds as a whole to an impulse applied at one location.

Soft bodies change the structure of that coupling. A contact can act between a node on one body and a location inside a mesh feature on another. Neighboring nodes share the response through the material’s elasticity. The authors describe this influence as more local than in a rigid body because deformation propagates through the object. The price is a larger dynamical system. A seemingly simple deformable object may have more than 1000 nodes, each contributing motion variables, while a rigid object is represented by the motion of its center of mass and its rotation.

This distinction matters wherever a simulation depends on repeated contact. The course mentions games and virtual reality training, where computation must keep pace with interaction, and digital prototyping and robotics, where the consequences of contact may be the point of the simulation. A numerical error that barely changes a snapshot can still matter over many timesteps. Small overlaps can build up in a stack. A contact that should stick can begin to creep. An inaccurate normal can send a reaction in the wrong direction even when the equations based on that normal are solved accurately.

The approaches the course builds on

The authors describe a long history of work on fast, robust contact algorithms in graphics, dating back to the 1980s. Much of the work they draw on first addressed rigid bodies. Constraint-based approaches became especially important in interactive graphics. Their defining choice is to ask which reactions are required to satisfy restrictions on movement. In the mathematical formulation, a restriction such as nonpenetration is a condition on the solution. The computed reaction is whatever the equations require, within the admissible range.

Penalty methods instead define a contact force from overlap and, in many cases, from the speed at which the overlap changes. The authors compare the construction to inserting a small spring at the interface. Once the gap and relative speed are known, the spring law supplies the force directly. Earlier graphics work used linear springs, springs with different responses during approach and recession, and forces obtained from an energy that increases with penetration. The authors also describe impulse-based approaches that represent interactions as a sequence of collisions. Their main treatment concerns reactions found within a time-stepping scheme, where impulses can represent forces accumulated over a step.

Within constraint-based simulation, earlier work had already established several ways to make friction computationally manageable. Stewart and Trinkle, and Anitescu and Potra, used a polyhedral approximation of Coulomb’s circular friction cone. The approximation makes the bound linear by describing a tangential impulse through contributions along specified directions. Box bounds offer another way to make the friction computation simpler. They let each tangential component be limited separately. The distinction between those approximations matters because the geometry of the allowed impulses changes with the representation.

The numerical methods also come from several traditions. Pivoting methods use the fact that once the status of each variable is known, the remaining unknowns frequently satisfy an ordinary linear system. Fixed-point methods repeatedly apply a rule whose output should eventually agree with its input. Projected Gauss–Seidel, a method used in interactive simulation, combines this idea with a sweep through the variables that keeps each updated value within its bounds. Nonsmooth Newton methods draw on formulations from numerical optimization that express complementarity as a root-finding problem. The course brings these approaches together around the same mechanical question, which makes it possible to see when they solve equivalent equations and when an apparent numerical shortcut changes the physics.

The method, step by step

From the current state to the next one

The constraint-based computation begins with the current configuration and velocity. A collision routine identifies the contacts to consider and supplies the geometry for each. The motion equations then connect possible contact impulses to the velocities those impulses would produce. The solver finds impulses that meet the contact and friction conditions. The integrator uses the resulting velocities to move the bodies, and a stabilization step may address error left in their positions. The authors present variants of this sequence, including an evaluation at the midpoint of a step and a separate correction after the main update.

A constraint-based contact simulation step

The steps in order.

A constraint-based contact simulation stepStep 1: Read body positions, velocities, and applied forces1. Read body positions, velocities, and applied forcesStep 2: Find contact points, normals, and gaps2. Find contact points, normals, and gapsStep 3: Map body velocities into local contact directions3. Map body velocities into local contact directionsStep 4: Assemble the coupled equations for contact impulses4. Assemble the coupled equations for contact impulsesStep 5: Solve the normal and friction conditions5. Solve the normal and friction conditionsStep 6: Recover velocities and advance body positions6. Recover velocities and advance body positionsStep 7: Correct accumulated penetration when needed7. Correct accumulated penetration when needed

For a newcomer, the main distinction is between a body’s free motion and the change that contact can impose. Gravity or another applied force would produce a certain velocity if contact were absent. The contact solver asks how that velocity must change to respect all the interfaces. An impulse is convenient because it describes a change in momentum over the step. A force can act throughout the step and contribute an impulse even when there is no sharp impact.

The paper starts from the Newton–Euler equations for generalized motion. “Generalized” means that the entries describe the independent motion variables of the system, which can include translation and rotation for a rigid body or nodal motion for a deformable one. At an instant the unconstrained relation is

M u̇ = f

Here M is the mass matrix, which includes rotational inertia where needed. The vector u̇ is the time derivative of the generalized velocity u, and f is the vector of generalized applied forces, including torques in the rotational entries. The dot above a variable denotes differentiation with respect to time.

The integrator approximates how the velocity changes over a finite time interval. In the course’s Euler description, an explicit force evaluation uses the state at the beginning of the interval. An implicit evaluation uses the state at its end, so the force can depend on the state being solved for. For contact, the course often holds the mass matrix and the contact directions fixed during a step while solving for the impulses and the end-of-step velocity. This keeps the local equations manageable. In these notes, a superscript plus denotes an end-of-step quantity.

M u⁺ − Jᵀ λ = M u + h f

The vector u⁺ is the end-of-step generalized velocity, and u is the starting velocity. The step size is h. The matrix M multiplies velocity to give generalized momentum, and h f is the applied impulse in the step discretization. The vector λ collects the unknown constraint impulses for the step. The contact Jacobian J maps body velocities into constraint velocities, and its transpose Jᵀ maps constraint impulses into generalized impulses on the bodies.

Implicitness can apply to different parts of the same step. Fixing the contact direction while solving for impulse magnitude means the geometry used to apply the push is known in advance. The push itself is chosen by examining the resulting velocity. An approach that also updates the direction within the solve can require additional collision queries because the candidate configuration changes. The course treats that as a separate source of work from solving an equation for a fixed set of contacts.

Once the end velocity is available, the positions can advance. A rigid body’s orientation can be stored as a quaternion, which uses a different number of components from angular velocity. The kinematic map accounts for that difference.

q⁺ = q + h H(u⁺)

Here q and q⁺ are the starting and updated generalized positions, h is the step length, and H maps the velocity u⁺ to the rate of change of the position coordinates at the configuration used by the integrator. In the rigid-body assembly described in the paper, the orientation quaternions are normalized after the position update. For a deformable mesh whose degrees of freedom are node positions, the corresponding nodal velocities can be used directly.

Determine where the bodies interact

A contact record combines a location, a normal, and a signed gap. In ideal touching contact, the two surface points coincide. When the surfaces already overlap, their representative points can lie at different positions. The authors discuss choosing a common point, such as the midpoint, because applying the opposing forces at distinct locations can introduce unwanted torque. Even with a common position, there may be several reasonable choices of normal at a corner or in a deep intersection. A normal is therefore part of the information the collision routine has to produce.

The gap is positive for separation, vanishes at touching, and is negative for penetration. The course interprets it as a displacement along the normal when that interpretation is available. Its role in stabilization is more general. A measure that grows consistently with constraint violation can serve as feedback even if it is not a literal distance.

Two spheres give the simplest example.

ϕ = ∥c₂ − c₁∥ − (r₁ + r₂)

The signed gap is ϕ, c₁ and c₂ are the sphere centers in the same reference frame, and r₁ and r₂ are their radii. The norm ∥·∥ gives the length of the vector between centers. A nonpositive gap triggers contact in the stated sphere test. The normal points along the line between the centers. If the centers coincide, that line has no direction, and the course suggests using a coordinate axis as a fallback.

For a sphere and an oriented box, the authors first express the sphere center in the box’s coordinate frame. In that frame the closest point on the solid box is found by clamping each coordinate of the center to the box’s extents. If the center lies outside the box, the vector to the closest point supplies the normal after rotation back into the common reference frame. Its length can be compared with the sphere radius. If the center is inside, clamping returns the center itself, leaving no direction to normalize. The course handles this case by selecting the nearest face and using the face geometry.

For two oriented boxes, the separating axis test checks projections along directions defined by the faces and edges. The candidate axes come from the 3 face directions of each box and the 9 edge-pair cross products. Finding a direction in which the projected intervals are disjoint establishes separation. If the boxes overlap, the test also helps identify the features responsible for the shallowest overlap. An edge pair gives a contact associated with the closest points on those edges. In a face case, the routine chooses a reference face and finds the face on the other box whose normal most strongly opposes it. Clipping the incident face to the sides of the reference face yields several possible support points. Sampling the contact region this way lets a face support a load at more than one location.

Triangle meshes generalize the feature-based approach. A broad phase first identifies pairs close enough for detailed tests. The course mentions bounding volume hierarchies and spatial hashing for this stage and concentrates on the subsequent contact geometry. Vertex–face and edge–edge pairs suffice to describe the contact samples in the illustrated polygonal cases. Retaining feature identifiers makes it possible to recognize a contact again without depending on exact equality of computed positions.

The mesh treatment includes continuous collision detection, which looks for contact during the interval between configurations. Under the course’s linear trajectory assumption, each vertex moves along a line at constant velocity during that interval.

xᵢ(t) = xᵢ + uᵢ t

Here i identifies a vertex, xᵢ is its starting position, uᵢ is its assumed constant velocity, and xᵢ(t) is its position after elapsed time t. In forward prediction the starting state supplies the motion estimate. In a backward test the known endpoint configurations can supply the displacement from which the linear velocity is estimated.

Both vertex–face and edge–edge contact require four points to be coplanar. The notes express that condition using a scalar triple product.

((x₂(t) − x₁(t)) × (x₃(t) − x₁(t))) · (x₄(t) − x₁(t)) = 0

The xᵢ(t) are the moving feature positions. In the vertex–face case, x₁(t), x₂(t), and x₃(t) define the face and x₄(t) is the tested vertex. In the edge case, the first pair defines one edge and the second pair defines the other. The cross product × supplies a vector perpendicular to the first pair of difference vectors, and the dot product · measures the component of the last difference along it. With linear trajectories the expression is cubic in t.

A root is a candidate time. A vertex lying in the plane of a triangle can still lie outside the triangle. Two edges in the same plane can have supporting lines that meet outside the finite segments. The course checks the feature geometry at candidate times, in temporal order, and recommends testing the end of the step because rounding can hide a boundary event. Nearly parallel edges require special handling because their cross product becomes too small to support the usual computation. An impact time can limit the size of a simulation step, or a simulator can use contact information from that time to construct an anticipated constraint.

Signed distance fields provide a different representation. A field associates a query location with a signed distance to the surface. Evaluating it at a candidate point gives the gap directly.

ϕ = s(x)

Here ϕ is the gap, s is the signed distance function, and x is the point in the field’s coordinates. Negative values indicate points inside, positive values indicate points outside, and zero identifies the surface. The field gradient gives the direction of increasing signed distance where it is well defined. Its sign in the contact record depends on the convention for ordering the bodies.

A mesh can be tested against a field by transforming its vertices into the field’s coordinates and querying them individually. This is a candidate generation procedure with a clear failure case. A thin feature can intersect the interior of a triangle while every tested vertex remains outside. The course discusses a refinement from Macklin and colleagues that searches over an entire triangle. It uses barycentric coordinates, weights on the triangle’s vertices constrained so that the candidate stays on the face.

x(u, v, w) = u x₁ + v x₂ + w x₃

Here x(u, v, w) is the candidate point. The vectors x₁, x₂, and x₃ are the triangle’s vertex positions, and u, v, and w are their non-negative weights, whose sum is one. The search minimizes the field value at the candidate point. For projected gradient descent, the field gradient tells the search how changing the weights affects the distance, and a projection keeps the weights admissible. A negative field value at the resulting point identifies an intersection.

In practice, a field can be stored on a voxel grid. Queries between stored samples require interpolation. Gradients can be stored as well, or computed when a query is made. The course discusses refining the grid near parts of the surface that require more detail and keeping a margin around the surface so that nearby queries have field data. These choices determine the geometry the solver will see, regardless of the accuracy with which it later computes the impulses.

Measure how each contact moves

The direction of motion relevant to nonpenetration is the rate at which the gap changes. At a rigid-body contact, the velocity of the contact point includes both the velocity of the center of mass and the contribution from rotation about that center. The paper uses the velocity on body B minus the velocity on body A, with the unit normal pointing from A towards B.

Δv = (vᴮ + ωᴮ × (p − xᴮ)) − (vᴬ + ωᴬ × (p − xᴬ))

The vector Δv is the relative velocity at the contact. The labels A and B identify the two bodies. For each body, v is the linear velocity of its center of mass, ω is its angular velocity, and x is its center-of-mass position. The vector p is the common contact location, and × is the cross product. Each vector from a center of mass to p acts as the lever arm in the rotational contribution.

Projecting this relative velocity onto the normal gives the gap rate. Projecting onto a pair of perpendicular tangent directions gives the planar sliding velocity. These projections become rows of the contact Jacobian. For a system with many contacts, each row has entries only for the degrees of freedom that participate in its contact, with zeros elsewhere.

v = J u

The vector v stacks contact-space relative velocities. The matrix J is the assembled contact Jacobian and u stacks body-space velocities. The rows used for a contact can encode its normal and planar tangential motion. The authors also show how an additional row can measure relative spin about the normal when the friction law includes resistance to twisting.

The same mapping applies to deformable bodies with different kinematics. The worked example places a node from one body against a tetrahedral element of another. The point on the tetrahedron has barycentric weights relative to the surrounding nodes. The same weights used to interpolate its position allow the Jacobian to interpolate its velocity. The relative velocity subtracts the velocity of the contacting node and then projects along the chosen contact direction. Applying the transpose of the Jacobian distributes an impulse to the participating nodes according to those weights.

For an implicitly integrated elastic body the mass matrix by itself is insufficient to describe the response during the step. The example in the course uses linear elasticity and includes stiffness and damping in the matrix that acts on the updated velocity.

W = M + h B + h² K

Here W is the effective matrix for the velocity solve, M is the deformable body’s mass matrix, B is its damping matrix, and K is its stiffness matrix. The scalar h is the timestep and the superscript ² denotes a square. The position-dependent elastic contribution from the start of the step goes into the right-hand side. In the rigid case an inverse mass action can be cheap because of the small separate blocks for each body. With W, computing the equivalent action generally involves a larger sparse system. The notes point out that a simple lumped-mass approximation can make the matrix diagonal if elastic forces are evaluated explicitly, with a corresponding restriction on the usable step size.

Choose when contact can push

A hinge illustrates what the authors call a bilateral constraint. It restricts motion in both directions away from an allowed relationship. Contact imposes a unilateral constraint. The bodies can leave the interface, while continued motion into it is excluded. At the position level, this means a positive gap rules out a normal contact impulse. A positive impulse is allowed only at zero gap.

0 ≤ ϕ ⊥ λₙ ≥ 0

The scalar ϕ is the signed gap, and λₙ is the normal impulse, with the subscript n identifying the normal direction. The complementarity symbol ⊥ specifies that the product of the quantities on either side vanishes. The inequalities require both quantities to be non-negative. The condition permits both to be zero, as when bodies touch without a load to support.

In a velocity-level update for bodies already touching, the corresponding residual is the separation speed. If the solved speed is positive, the bodies can move apart and need no contact impulse. If the reaction is positive, the solved velocity holds the gap stationary to first order. The authors also allow the current gap to enter the condition when the simulator anticipates contact.

0 ≤ (ϕ + h vₙ) ⊥ λₙ ≥ 0

Here ϕ is the current gap, h is the timestep, and vₙ is the solved relative speed along the normal. The impulse λₙ and the complementarity operator ⊥ have the same roles as above. The quantity in parentheses is a first-order prediction of the gap at the end of the step. A pair with positive separation can therefore keep approaching if it has room to do so. If the predicted motion would close the gap and continue through the surface, the constraint can act in advance.

The dynamics supply the other half of the calculation. Once J is assembled, the equation of motion expresses the end velocity in terms of the unknown contact impulses. Substitution into the constraint equations eliminates the body velocities, a reduction the paper calls forming a Schur complement. In the simple velocity formulation this gives an affine relation in contact space.

v⁺ = (J M⁻¹ Jᵀ) λ + J M⁻¹ (M u + h f)

The vector v⁺ contains the end-of-step contact velocities. The factors J, M⁻¹, and Jᵀ act in sequence on λ, the impulse vector. Reading that product from right to left, the transpose sends an impulse to the bodies, the inverse mass matrix M⁻¹ converts it into a velocity change, and J measures the result at all contacts. The second term projects the free motion into contact coordinates. In it, M is the mass matrix, u is the initial velocity vector, h is the step size, and f is the applied force vector.

This equation explains why springs computed locally and coupled constraints can behave differently. A change in one impulse affects every contact that registers the resulting body motion. The product of matrices describes that coupling explicitly. Once the impulses are found, the body velocities can be recovered from the original momentum equation. For the implicit elastic example, the same logic applies with the effective matrix W and the corresponding free-motion right-hand side.

Add friction in the contact plane

The normal rule supplies support. A friction law determines which sideways reactions are admissible at that support and how they are chosen. Coulomb’s planar law says that the allowable magnitude grows with the normal load.

∥λₜ∥₂ ≤ μ λₙ

The vector λₜ contains the tangential impulse components, and ∥·∥₂ denotes their Euclidean length. The subscript t stands for tangential motion. The scalar λₙ is the normal impulse and μ is the non-negative, dimensionless coefficient of friction for the contacting surfaces. For a specified normal impulse, the allowed tangential impulses fill a disk. Increasing the normal impulse increases the disk’s radius, giving a cone when the normal component is included.

The bound is only part of the law. A sticking contact requires a tangential impulse that makes the resulting relative sliding velocity zero, if the dynamics allow such an impulse within the disk. When sliding persists, the friction impulse has the maximum allowed magnitude and opposes the sliding direction. The authors express both cases through maximum dissipation.

λₜ = arg min { vₜ · γ | γ ∈ F(μ λₙ) }

Here λₜ is the selected tangential impulse, vₜ is the relative sliding velocity, γ is a candidate tangential impulse, and F(μ λₙ) is the admissible set at the current normal impulse λₙ and friction coefficient μ. The dot denotes a scalar product, and arg min means a choice of candidate that minimizes the scalar product. When vₜ vanishes, this local criterion gives the same value for every admissible candidate. The coupled dynamics still have to determine which impulses maintain sticking throughout the system.

The variational inequality in the notes states the same selection rule by comparing the chosen impulse with every feasible alternative.

(γ − λₜ) · vₜ ≥ 0   for every γ ∈ F(μ λₙ)

Here γ ranges over the feasible tangential impulses in F(μ λₙ), where μ is the coefficient and λₙ the normal impulse. The vector λₜ is itself feasible, and vₜ is the sliding velocity. The inequality says that substituting any other feasible impulse cannot lower the scalar product with the velocity. This expression allows the authors to change the shape of the feasible set while retaining the same dissipation principle.

Select a computational form for the friction limit

In the polyhedral formulation, the simulator uses a finite collection of tangential directions in opposing pairs. Each direction gets a non-negative impulse component. A signed impulse along an axis can therefore be represented by its contribution along either orientation of that axis. The sum of all tangential components is bounded by the normal load times the coefficient. This replaces the Euclidean length bound with a linear inequality.

0 ≤ μ λₙ − Σᵢ λₜ,ᵢ ⊥ β ≥ 0

The scalar μ is the coefficient of friction, λₙ is the normal impulse, and λₜ,ᵢ is the non-negative impulse magnitude along tangent direction i. The summation Σᵢ runs over those directions. The auxiliary variable β represents slip through the maximum directional component. Complementarity between β and the unused friction allowance means that a positive β uses the full allowance.

A second condition couples each tangential impulse to the velocity measured along its particular direction.

0 ≤ β + vₜ,ᵢ ⊥ λₜ,ᵢ ≥ 0

Here β is the same auxiliary variable, vₜ,ᵢ is the relative velocity projected onto tangent direction i, and λₜ,ᵢ is the impulse component along that direction. The symbol ⊥ again requires the product of the paired non-negative quantities to be zero. A positive impulse can act only along a direction whose velocity projection cancels the slack. During sliding, this restricts the impulse to the direction or tied directions that give maximum dissipation within the polygon.

Combining these conditions with the normal rule and the reduced dynamics produces a linear complementarity problem, or LCP.

0 ≤ A x + b ⊥ x ≥ 0

The vector x contains unknown normal impulses, directional friction impulses, and slip variables. The matrix A contains the linear couplings from both motion and the friction conditions, and b collects the terms independent of x, including the free-motion contribution. Vector complementarity applies between matching entries. The additions for the slip variables and friction bounds make the matrix of this formulation asymmetric. The authors show why this matters for solvers that assume symmetry or need a usable diagonal entry for every variable.

The boxed linear complementarity problem, or BLCP, takes a different approach. It chooses perpendicular tangent axes and assigns a signed impulse to each. Both components have their own interval, with endpoints set by the normal impulse.

−μ λₙ ≤ λᵢ ≤ μ λₙ

The scalar λᵢ is the friction impulse along tangent axis i, μ is the coefficient of friction, and λₙ is the associated normal impulse. A positive velocity component requires the lower endpoint, and a negative one requires the upper endpoint. With zero velocity along the axis, the impulse may take any value in the interval. Normal contact fits the same convention with a lower bound of zero and no finite upper bound.

At a fixed normal impulse, the box has corners outside the circular Coulomb limit. The faceted approximation described earlier lies inside that limit. Thus a box can admit stronger friction along a diagonal than the circular law would allow at the same load, while the inscribed approximation can restrict it. In the boxed form, the reduced velocity matrix retains the symmetric product built from the contact Jacobian and inverse mass. The friction dependence on the normal impulse survives in the bounds. Updating those bounds during iteration preserves that dependence in the solve. Setting them once from a preliminary normal solve makes a further approximation.

The cone complementarity formulation takes a different route to solver efficiency. It changes the normal contact condition by subtracting a term proportional to tangential speed from the normal residual. At a touching contact the modified condition is

0 ≤ vₙ − μ ∥vₜ∥₂ ⊥ λₙ ≥ 0

The scalar vₙ is normal separation speed, vₜ is the tangential velocity vector, and ∥vₜ∥₂ is its Euclidean speed. The coefficient is μ, the normal impulse is λₙ, and ⊥ enforces a vanishing product. For positive normal impulse, the normal speed equals the friction coefficient times the tangential speed. This explains the tendency toward separation during rapid sliding that the authors illustrate with blocks.

The cone form combines admissibility and orthogonality for the complete contact vector. The impulse belongs to the friction cone, the velocity belongs to its dual, and their scalar product is zero. The dual cone consists of directions with non-negative scalar product against every impulse in the original cone. Combining this relationship with the reduced dynamics gives a convex objective over the friction cone.

λ⋆ = arg min { ½ λᵀ A λ + λᵀ b | λ ∈ Fμ }

The vector λ⋆ is an impulse solution, λ is a candidate impulse vector, and Fμ is the feasible cone, or the product of contact cones in a system. The symbol μ indicates the friction coefficient that sets the cone’s width. The matrix A describes the symmetric impulse-to-velocity response, b is the free contribution to the contact velocity, and ᵀ denotes transpose. The factor ½ belongs to the quadratic objective. This structure allows optimization techniques to address the coupled problem directly. The formulation’s numerical appeal comes with the change in contact behavior described by the modified normal equation.

Solve the resulting system

Pivoting methods treat the status of each variable as the immediate unknown. In a boxed problem an impulse can be at its lower bound, at its upper bound, or free to move between the bounds. When a variable is free, its associated velocity must vanish. When it is at a bound, the corresponding velocity must have a sign consistent with that bound. Given an assignment of statuses and specified bound values, a linear solve determines the free variables.

Aꜰꜰ xꜰ = −bꜰ − Aꜰʟ xʟˡᵒ − Aꜰᴜ xᴜʰⁱ

The labels F, L, and U, shown as subscripts, denote the free, lower-bound, and upper-bound sets. The vector xꜰ contains the free unknowns, xʟˡᵒ contains the prescribed lower values and xᴜʰⁱ the prescribed upper values. In each block of A, the first index selects rows and the second selects columns, so Aꜰʟ measures how the fixed lower-bound entries contribute to the free equations. The vector bꜰ is the free-row portion of the constant term. Once the system is solved, the algorithm checks whether free impulses stay within their bounds and whether the velocities at the tight variables have the required signs.

Incremental pivoting adds a variable while preserving the conditions already established for processed variables. It increases the new impulse until a boundary is reached. The first boundary can belong to a previously processed variable, in which case that variable changes status and the algorithm recomputes the direction. Principal pivoting starts with an assignment for the whole system, solves its free subproblem, and moves a variable whose result conflicts with its assigned status. Block principal pivoting moves all conflicting variables together. That can reduce the number of changes of status, but repeated assignments can cause cycling. The course discusses temporarily taking single pivots to break a cycle and reusing a matrix factorization when the free set changes.

Projected iteration uses the same relation between impulse and velocity in smaller updates. Projected Gauss–Seidel visits variables in sequence, using the latest available values at each visit. Its tentative correction follows the local residual, scaled by the variable’s diagonal coefficient. It then projects the updated value into the allowed range. For a lower-bounded LCP, the paper gives the projected successive over-relaxation update.

xᵢ ← max(0, xᵢ − ω rᵢ / Aᵢᵢ)

Here xᵢ is the current value of the unknown at index i, rᵢ is the matching entry of the residual vector Ax + b, and Aᵢᵢ is the diagonal entry coupling that variable to its own residual. The parameter ω scales the step, max selects the larger of its arguments, and the arrow assigns the result to xᵢ. With ω = 1, the update is projected Gauss–Seidel. For a boxed problem the projection clamps the tentative value at both endpoints. Jacobi iteration uses values from the previous sweep, allowing updates to be computed independently before they are committed.

Blocking changes what the sweep regards as an update. A block can hold all variables of a contact, so a local solver handles the normal and friction components while other contacts are temporarily fixed. This is particularly helpful when scalar updates would encounter the zero diagonal of the polyhedral slip variable. Blocks can also contain all joint constraints, or all contacts in a layer of a stack. Staggering is a particular block arrangement in which a normal solve and a friction solve alternate. The authors explain that each of those subproblems can be expressed as a convex quadratic problem with the other variables held fixed. The course leaves the convergence of their alternation as a separate question.

Other variants try to get more from a sweep. Subspace minimization uses projected Gauss–Seidel to estimate which variables are free and which are at a bound. It then solves the free system more accurately and projects the result back into the bounds before revisiting the assignment. The nonsmooth nonlinear conjugate gradient variant uses the difference between a projected sweep’s input and output to guide an accelerated search. It can restart when the relevant norm grows. These methods use a cheap update either to guess the active set or to construct a direction for a larger change.

Nonsmooth Newton methods start by turning complementarity into a root condition. The minimum map illustrates the idea.

ψₘₘ(a, b) = min(a, b)

The scalar inputs a and b are the quantities paired by a complementarity condition, such as a normal separation residual and a normal impulse. The function ψₘₘ returns the smaller input through min. It is zero exactly when both inputs are non-negative and at least one is zero. Its branch can change when the two arguments cross, which accounts for the active-set behavior discussed in the course.

The Fischer–Burmeister function expresses the same root condition with different regularity.

ψꜰʙ(a, b) = a + b − √(a² + b²)

The inputs a and b again denote the paired scalars. The symbol ψꜰʙ denotes the Fischer–Burmeister function, and √ is the non-negative square root. The function is smooth away from the origin, where the Newton procedure needs a choice of generalized derivative. The authors also describe rescaling one of the arguments by a positive factor. This preserves the roots while changing the shape of the residual the iteration follows.

The complete residual can include the momentum equations, the normal condition, and the friction conditions, including the optimality condition that aligns the impulse against slip. A Newton update uses a local linearization to compute a search direction.

D F(xᵏ) Δx = −F(xᵏ)

Here F is the vector of residual equations, xᵏ is the current unknown vector at iteration k, and D F(xᵏ) is the derivative or the chosen generalized Jacobian at that vector. The vector Δx is the Newton direction. The minus sign makes the linearized equations aim to cancel the current residual. Depending on the formulation, the friction terms can give an asymmetric linear system. The notes discuss a reformulation that removes an auxiliary variable by fixed-point iteration to obtain a symmetric system suitable for iterative Krylov solvers.

Project onto a feasible friction set

A proximal operator gives another way to express the same normal and planar friction rules. Here it finds the closest point in an admissible set to a proposed value.

prox꜀(z) = arg min { ∥z − x∥₂ | x ∈ C }

The symbol prox꜀ denotes projection onto the set C, z is the proposed point, and x ranges over feasible points in C. The norm ∥·∥₂ gives Euclidean distance, and arg min returns a point at minimum distance. A feasible z projects to itself. The relevant sets in the course include the non-negative half-line for normal impulses and convex planar regions for friction.

For the normal reaction the fixed-point equation is

λₙ = proxɴ(λₙ − rₙ vₙ)

Here λₙ is the normal impulse, vₙ is the normal relative velocity, and rₙ is a positive step factor. The operator proxɴ projects onto the set N of non-negative scalars. For a positive impulse to remain unchanged by projection, the velocity must vanish. At zero impulse, a positive separation speed moves the tentative value below zero, and the projection returns zero. The fixed points therefore satisfy the original normal complementarity condition.

For planar friction, a step opposite the relative tangential velocity is followed by projection onto the admissible friction set.

λₜ = proxꜰ(λₜ − rₜ vₜ)

The vector λₜ is the tangential impulse, vₜ is the tangential relative velocity, and rₜ is a positive step factor. The operator proxꜰ projects onto F, the admissible set at the current normal impulse. If the contact sticks, the velocity correction vanishes and a feasible impulse is unchanged. During sliding, the fixed point lies where moving farther opposite the sliding velocity and projecting back gives the same impulse. The authors relate this geometric condition to the variational inequality for maximum dissipation.

In a Jacobi version, trial impulses for all contacts use the previous iterate, including its normal loads to set the friction limits. In a Gauss–Seidel version, the friction projection for a contact can use its newly computed normal load, and the solver passes the effects of the updated impulses along to subsequent contacts. The latter version can update an intermediate vector of body-space velocity changes instead of explicitly recomputing a full contact matrix product after every change. The course presents an adaptive rule that rejects an update when the change between successive impulse vectors grows, reduces the step factors, and tries again. Step factors affect the iteration, whereas adding compliance through a change to the equations affects the solution being sought.

The projection approach also permits directional friction. The Matchstick construction represents each surface’s local structure by a direction in the contact plane. Aligned directions give an anisotropic limit, meaning that the friction strength depends on which way the surfaces slide. Orthogonal directions give the isotropic limit in the construction described. The authors explain the change between these cases through an angle-dependent interpolation.

d = 1 − (2 / π) arccos(|sᴬ · sᴮ|)

Here d is the interpolation weight, and sᴬ and sᴮ are unit vectors describing the local structure directions of the two contacting surfaces. The dot denotes their scalar product, the bars take its absolute value, and arccos gives the smallest angle between the unoriented directions. The constants 1, 2, and π scale the weight between the orthogonal and aligned cases. Because only the orientation matters, flipping one structural vector does not change the result.

The simulator aligns the tangent frame with the surface directions and assigns friction coefficients to the resulting axes. At a given normal load the admissible planar region is then elliptical. The course shows how to use that region in a proximal sweep, approximate it by a polygon for an LCP, or express conditions on its boundary for a nonsmooth Newton solve. When the friction description depends on sliding velocity and the integration is fully implicit, the solver has to revisit that description as the candidate motion changes. If a step holds the surface orientations fixed, much of the geometry can be prepared outside the inner solve.

The course also considers an ellipsoid that adds resistance to twisting around the normal. For a point already inside the admissible region the projection returns the point itself. For an exterior point the distance minimization has a solution on the boundary, which the notes compute through a scalar root search.

x⋆ = (t K + I)⁻¹ z

Here x⋆ is the closest boundary point to the exterior query z. The diagonal matrix K describes the ellipsoid through the reciprocals of its squared semiaxis lengths, I is the identity matrix, and t is a scalar chosen so that x⋆ lies on the boundary. The superscript ⁻¹ denotes a matrix inverse. The authors use bracketing and bisection on the positive root and discuss rescaling the problem to improve numerical precision. The geometry of the feasible region therefore determines the work done inside each local projection.

Correct drift or use a penalty force

Velocity-level contact rules can hold at a computed step while small positional errors persist. The authors derive a stabilization term from an implicit spring and damper acting in constraint space. It feeds the current gap error into the velocity condition. In their derivation for a stabilized constraint,

J u⁺ + ε λ = −υ ϕ / h

The vector u⁺ is the end velocity, and J maps it to the constraint velocity. The quantity λ is the constraint impulse. The coefficient ε controls how much of that impulse appears in the velocity equation. The coefficient υ is the error reduction parameter, ϕ is the current positional error, and h is the step size. The negative sign directs the feedback against the error. The authors derive these coefficients from stiffness and damping, and explain how a positive diagonal addition can also improve the conditioning of the reduced solve when constraints are redundant.

A separate position correction can be applied after a velocity step. The course formulates this correction through candidate contact displacements, weighted by the bodies’ mass properties. The displacement should remove negative gaps, act in the separating direction, and vanish at contacts that end with a positive gap. This gives a complementarity problem in position space with much the same matrix structure as the velocity solve. Because the correction uses a linear approximation of how displacement changes the gap, the procedure can require repeated corrections.

The penalty alternative computes the contact force from the current penetration and relative velocity. For the normal spring and damper used in the rigid-body example,

fᴮ = (−k ϕ − b (v · n̂)) n̂

The vector fᴮ is the penalty force on body B, k is the spring stiffness, and b is the damping coefficient. The scalar ϕ is the signed gap at the penetrating contact, v is the relative velocity there, and n̂ is the unit normal pointing from body A toward B. The dot product v · n̂ selects normal motion for damping. A corresponding opposing force acts on body A. For a rigid body the force also contributes a torque through the lever arm. For a deformable mesh it can be distributed among nodes through barycentric weights.

The frictional penalty example saves an anchor when contact is established. A tangential spring resists movement away from that anchor. As long as the required force stays within the friction bound, the anchor stays in place. During sliding, it moves toward the current contact position so that the spring force returns to the allowed limit. The authors also describe an option that opposes the current sliding velocity directly and applies only to sliding friction. These force laws are evaluated during the simulation. The procedures use the scene geometry, material coefficients, dynamical state, and numerical settings, with no training stage. The course accompanies the derivations with programming examples.

Experiments and results

What the examples measure

The course draws its evidence from worked examples, visual demonstrations, and studies of particular numerical choices. It has no shared dataset or train and test split. The quantitative comparisons use scenes or algebraic problems as inputs, then measure quantities such as residual error, iterations to a target, or computation time for a particular part of a solver. The distinction matters because the examples change different parts of the pipeline. An improvement in the time spent factoring a matrix says something different from an improvement in how accurately a sliding object follows a physical experiment.

The friction coefficients reproduced in the course illustrate the material inputs to the equations. In the following comparison, the setups are two clean, dry tire–surface pairings. The metric is the dimensionless coefficient relating the available tangential reaction to normal load. The star marks the setting with the larger friction allowance at the same load. These values are material examples used by the course, rather than measurements of solver performance.

Friction coefficients for clean, dry car tires on asphalt and grass

Asphalt has the larger coefficient and allows a larger tangential reaction at the same normal load.

Friction coefficients for clean, dry car tires on asphalt and grassCar tire on asphalt (this paper): 0.72Car tire on asphalt (this paper)0.72Car tire on grass: 0.35Car tire on grass0.35
The numbers
System or settingCoefficient of friction
Car tire on asphalt (this paper)0.72
Car tire on grass0.35

The values illustrate where physical inputs enter the calculation. They scale the bound used by any friction formulation that takes the coefficient as a parameter. A projected or Newton solver can satisfy its equations accurately with either value. Its residual measures that algebraic success, while the choice of surface coefficient determines what constraint it has successfully enforced. The authors’ table also distinguishes static and kinetic coefficients for some material pairs and shows that surface conditions matter.

Ordering and convergence in rigid-body scenes

For their study of ordering, Andrews and colleagues use two boxes stacked one atop the other, with eight constraints that prevent interpenetration. Its baseline is projected Gauss–Seidel with the default order, and the comparison changes only the order in which the unknowns are updated. The study evaluates 40,320 permutations. The course reproduces curves for the best, worst, and default orders, plotting the LCP residual against iteration count. It also shows the distribution of iterations needed to reach a residual of 10⁻⁴. The best order is reported to reach the solution in less than half the iterations of the worst order. The distribution indicates that convergence in this example varies across many orders, beyond the difference between the extremes.

The authors also reproduce work by Poulsen and colleagues on ordering heuristics for PGS applied to the boxed friction problem. The examples include a box stack and a card house. Each heuristic chooses how the solver visits variables as it sweeps. On the box-stack plot, the impulse-based ordering curve coincides with the standard PGS curve. A greedy ordering gives nonmonotone behavior. The comparison shows that an order based on the evolving solve can sometimes produce an increase in the plotted error, even if it seems locally favorable. The course uses these examples to caution against assuming convergence guarantees for boxed friction with changing bounds.

For blocked PGS, the course shows a wall and tower simulation and plots convergence for a single timestep of each configuration. It describes the observed rate as linear in those examples, with a convergence constant that varies substantially by scene. The geometric examples make clear what each curve represents. They are separate contact configurations, each with its own coupling among the variables. A class of convergence can remain the same even when the practical reduction in error per sweep differs.

Work per iteration and the accuracy reached

The factorization comparison from Enzenhoefer and colleagues concerns block principal pivoting. At a pivot, the variables belonging to the free set change, so the linear system to be factored can change too. The reported alternative reuses an initial factorization and downdates it as variables become fixed at their bounds. For complex simulations the course reports a 1.5 to 3 times reduction in computation time for the block principal pivoting algorithm with the downdated factorization. That observation is conditional on a sufficiently modest percentage of variables being pivoted. It concerns the implementation of the pivoting solve for those simulations, rather than the full cost of generating contacts and advancing the scene.

The subspace-minimization comparison uses standard PGS as the baseline. Its convergence plots use a Fischer–Burmeister merit function, a scalar measure derived from the complementarity residual. The horizontal axis is measured in units of a PGS iteration to aid comparison. The added subspace solve performs well on small configurations and on configurations with joints. In larger cases its convergence is reported to resemble PGS. Some curves contain abrupt increases in the merit function, which the authors attribute to solving the free subproblem with an incorrectly guessed set of active constraints.

A further comparison uses scenes from Silcowitz and colleagues to show nonsmooth nonlinear conjugate gradient against basic projected Gauss–Seidel, with up to 5000 iterations. In the figures, the accelerated iteration generally reduces the error faster and frequently reaches higher accuracy. The course emphasizes the practical relevance to problems with large mass ratios, for which basic PGS is described as slow. The iteration cap specifies the comparison’s scope. The notes describe the accelerated method as computationally cheaper than using a direct solve for such problems, but the plotted improvement is a convergence comparison.

The discussion of the cone formulation cites another kind of evidence. The authors report that work by Mazhar and colleagues found good agreement with physical granular flows. That agreement concerns a particular application of the formulation. The course also identifies a setting in which its altered normal condition has a different consequence from classical Coulomb friction, namely rapid sliding while contact still supports a load. The two observations concern different motions and different ways of judging fidelity.

What the visual demonstrations establish

The proximal demonstrations include structured stacking, packing, jamming, and building collapse. Their role is to show the types of coupled scenes in which the scheme has been used. The authors illustrate both regular arrangements, where many contacts can transmit loads through a structure, and configurations with more irregular interactions. They also show a shock-propagation method that groups contacts in layers along gravity. The demonstration connects the grouping to a mechanical purpose: propagating the response quickly in the direction along which loads pass through a stack.

For anisotropic friction, the course shows tire–ground contact, hopping, and soft robotic gripping with different simulators. A separate example uses a field of structural directions on a ravine slope to steer sliding logs towards a building or around it. This gives a visible consequence of rotating the local friction directions while keeping the interpretation in terms of contact impulses. The demonstrations establish that directional friction can be incorporated through different solver families and can alter the resulting motion. The course uses convergence plots and comparative measurements elsewhere when the question is numerical accuracy or computation time.

What the ablations show

The course contains no formal ablation suite, and instead examines controlled changes to variable ordering, factorization, active-set estimation, residual scaling, and projection step size.

The same equations can produce different iteration histories

The box-stack ordering experiment provides the clearest control. The contact geometry, nonpenetration constraints, solver update, and target residual remain fixed while the order changes. Gauss–Seidel uses the most recent values available, so two sweeps that visit the same variables in a different order pass corrections through the stack differently. A favorable order allows a change at one contact to affect other contacts sooner within that sweep. The comparison shows where ordering can matter even when the equations, the local update, and the allowed impulses are identical.

The boxed-friction experiments complicate that picture because the normal impulses influence the tangential bounds. Updating an impulse can change both the current residual and the domain available to a subsequent variable. The observed spikes under the greedy rule show why a locally motivated ordering can have complicated consequences for the complete system. They are evidence about the iteration in the studied scenes, and the observed lack of monotonicity leaves open what the method will do over a longer run or on another configuration.

The subspace comparison isolates another source of numerical behavior. A projected sweep gives an estimate of which impulses are free. A linear solve can make rapid progress when that estimate is correct because it addresses a coupled set all at once. With an incorrect set, the linear solve improves the wrong subproblem and can make the full merit function rise. The observed spikes identify this failure mode directly. The difference between smaller scenes, scenes with joints, and the larger configurations also explains why doing more work inside each iteration need not produce a uniform convergence gain.

Reusing a factorization changes the work needed to solve the free system without changing the complementarity conditions. The reported speedup identifies a cost that can be saved when successive free sets differ modestly. When many variables pivot, the advantage can shrink because the downdate itself has more work to do. That makes the fraction of variables changing status relevant alongside the size of the simulation.

Scaling a step can help or hurt

The proximal examples compare different step factors on a simple disk. With a fixed velocity direction, each iteration moves a candidate in the same direction before projecting it back to the disk. In that example, a larger factor increases progress and improves the observed convergence constant. The authors then make the velocity depend on the current impulse. The same change in factor can produce strong oscillation because a large update alters the direction and size of the next correction. The two examples explain why the course uses a residual check with rollback and rescaling in the coupled iteration.

The analysis separates a change to an iterative procedure from a change to contact behavior. A positive step factor leaves the normal and friction fixed-point conditions intact. A compliance term introduced into the contact equations changes the relationship between the resulting impulse and the residual constraint error. The distinction helps interpret an apparently steadier simulation. The solver may be reaching the same equations more reliably, or the equations may be permitting different motion.

Preconditioning in the Newton discussion has a similar diagnostic example. The authors compare the shapes of the minimum-map and Fischer–Burmeister residuals as a scale factor changes. For the illustrated single constraint, aligning the slopes of the two minimum-map branches makes the residual linear, so its root can be found in one Newton step from any starting point in that example. The Fischer–Burmeister residual becomes less curved in the same illustration. A separate comparison summarized in the course found no overall best choice of generalized derivative at the Fischer–Burmeister function’s nonsmooth point. Taken together, these examples show that scaling can improve a particular residual landscape and that local derivative choices still depend on the problem.

Geometry is part of the comparison

The friction-cone drawings compare feasible sets with the same normal load. More directions make the inscribed polygon approach the circle, at the cost of more variables. The box formulation avoids the non-negative directional expansion and its slip variable, but its diagonal directions allow impulses outside the circle. These differences can exist even if the respective solvers satisfy their complementarity equations exactly. They arise from what the equations define as feasible.

The cone complementarity example makes this especially clear. Classical planar sliding can occur with a positive normal reaction and zero normal speed. The cone relaxation allows a positive normal speed in that situation and ties it to the amount of slip. The convex solve and the tendency to lift apart share the same source: the coupling added to the normal condition. This comparison explains why algebraically similar descriptions of a friction cone can justify different expectations for the resulting motion.

Limitations

Limits identified by the authors

The course is selective about both collision detection and contact response. The authors set aside collision-law approaches based on event propagation, give limited space to finding contacts on common shape representations, and omit recent work on barrier methods and continuous time integration and normals. They also leave direct treatment of position-based and projective dynamics outside the course. The cone complementarity formulation is derived, but its dedicated solvers receive little detail. The penalty treatment concentrates on explicit time integration even though the course mentions work on implicit penalty schemes.

The contact laws themselves simplify the underlying physics. The course describes Coulomb friction as an empirical relation that condenses many effects into a coefficient, including the geometry of surface asperities, lubrication, wear, humidity, and temperature. The basic isotropic planar law treats all tangent directions alike. The directional extension accounts for selected structural directions, and the torsional extension adds resistance to relative spin. Neither covers the full range of surface interactions discussed by the authors. The Matchstick derivation in particular restricts its worked treatment to a single structural direction on each surface, while the notes recognize that real materials can have more.

Collision geometry limits the quality of the constraints before the solver starts. Under discrete detection, bodies can already be penetrating when a new constraint is created. Under continuous mesh detection, the worked derivation assumes linear vertex motion over a step, and the approximation becomes less reliable as the step grows. Signed distance grids trade resolution for memory, and vertex-only field tests can overlook intersections between vertices. The authors also discuss ambiguous normals for nonsmooth surfaces and deep overlap. Refining a grid, a mesh, or a local search addresses a specific part of this problem.

The numerical limits vary with the formulation. The course gives conditions for convergence of projection schemes and warns that arbitrary matrices offer no general guarantee. In the proximal analysis, the local convergence argument depends on the spectral radius of the fixed-point Jacobian being below one, and the step factors affect whether that condition holds. A fixed number of sweeps can be adequate for an interactive application while leaving substantial error in a more demanding one. Pivoting can cycle, and redundant constraints can make the reduced system poorly conditioned. Stabilization and factorization strategies address some cases, with their effectiveness depending on the equations being solved and the configuration.

Penalty methods avoid a coupled solve for the spring forces, but the authors emphasize the resulting parameter tradeoff. A spring that is too weak allows visible overlap. Increasing stiffness can severely restrict the step size for an explicit integrator. A spring can also produce secondary oscillations and a softer response than expected of rigid contact. Choices about how many points represent an extended interface and how penetration depth is computed remain important. A single force at the deepest point of a face contact can give poor support for a stack.

Limits of the evidence

The studies in the course establish local comparisons. The box-ordering result concerns a particular stack and a specified residual target. The factorization speedup concerns a particular algorithm and depends on how much the index set changes. The convergence plots for the accelerated solvers characterize the illustrated scenes. Since those comparisons do not share a single physical setup, stopping rule, implementation, or measurement procedure, the text does not establish a numerical ranking of the solver families across applications.

A residual can reveal violated conditions in the equations under study. Physical fidelity also depends on which constraints were generated and on the friction and integration choices. A low residual cannot reveal a contact absent from the collision candidates. It also cannot distinguish between a circular friction bound and the extended diagonal range of a box if each is judged against its own equations. The authors’ granular-flow example provides a physical comparison for one application of the cone formulation. Its scope leaves the behavior of that formulation in other sliding or supporting contacts to be judged separately.

The course frequently freezes contact geometry over a step and uses a local plane to describe motion at a point. Those approximations make it possible to derive and compare the solvers on a common basis. A high-accuracy solve within a step still inherits the time discretization and the contact samples chosen at its start or midpoint. The post-step correction reinforces this point: it can reduce overlap in an approximately mass-weighted way, but its first-order gap calculation can leave enough error that it has to be reapplied. In the demonstrations of directional friction, the visible trajectories show the type of effect a structural field can produce. How accurately the amount of steering corresponds to a particular physical surface remains outside those demonstrations.

What came after

The course consolidates earlier work on time stepping, collision geometry, complementarity solvers, proximal projection, and directional friction. The examples from other work discussed above are part of that foundation. The authors identify differentiable physics, richer friction laws, and contact involving deformable bodies as open directions at the time of the course. Specific subsequent works that cite or extend the course are undocumented here.

Cite

Cite as Sheldon Andrews and Kenny Erleben. 2021. Contact and friction simulation for computer graphics. ACM SIGGRAPH Courses.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1145/3450508.3464571

@inproceedings{andrews2021contact,
  title = {{Contact and friction simulation for computer graphics}},
  author = {Sheldon Andrews and Kenny Erleben},
  booktitle = {ACM SIGGRAPH Courses},
  year = {2021},
  doi = {10.1145/3450508.3464571},
  url = {https://doi.org/10.1145/3450508.3464571}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/andrews-2021-contact-friction-simulation-computer-graphics/