Subspace Simulation

In this subsection, we derive a constrained version of the rigid body dynamics equations using a subspace optimization approach. This formulation connects rigid body dynamics to the Incremental Potential Contact (IPC) method, as will be further elaborated in subsequent sections.

Recall that in IPC, the simulation problem is posed as the following optimization:

Here, is the incremental potential, denotes the particle position to be solved.

Let be a particle position on a rigid body, parameterized by the body's rotation matrix and translation . The rigid body kinematics impose the constraint , where is the particle's position in the body-local frame. In the stacked form, this becomes:

where and are constant matrices independent of and as they only rely on the local particle positions in the body frame.

Substituting into the IPC formulation, we obtain the constrained optimization problem:

where the constraint enforces rigidity of the rotation matrices for each rigid body i.e. .

Applying the method of Lagrange multipliers, we introduce the Lagrangian:

and derive the stationarity conditions:

This leads to the following constrained rigid body dynamics equations:

These equations define the motion of rigid bodies under subspace-constrained dynamics, while satisfying both energy consistency and rigidity constraints.