Linear and angular momentum of a posed body from two of its poses seconds
apart, at the interval's middle, read from the mass model
resolveAutoMovieCenterOfMass builds once per body: every profile segment a
rigid part riding its bone, with its mass, centre and principal inertia.
Airborne rotation, the response to an impulse and a pair's balance read the
momenta and the composite tensor about the centre of mass (#3422). Units
are kilograms, metres and seconds: linear momentum in kg m/s, angular
momentum in kg m²/s, in the frame the bones are given in (the world, or a
root's own frame when a caller passes root-frame bones).
Each segment's velocity is the chord of its centre over the interval and
its angular velocity the rotation vector of its relative turn Q1 Q0⁻¹,
taken on the shorter arc (samplePoseVelocity.rotationVector), over the
interval: both are central differences about the middle, with second-order
error in seconds for sufficiently smooth segment trajectories. Each
segment's position and principal frame are
read at the middle (the mean of its centres and the half-way slerp of its
frames), and the angular momentum about the middle's centre of mass is
Σ m (c - C) × v + R diag(I) Rᵀ ω, the segments' orbital and spin momenta.
A rigid turn of the whole body by θ over the interval introduces an
O(θ²) orbital error through the mean positions and velocity chords. The
logarithmic spin rate has no such universal scalar bias, and the complete
relative momentum error depends on the mass distribution and motion; this
stencil does not certify a relative error budget for a chosen interval.
Linear and angular momentum of a posed body from two of its poses
secondsapart, at the interval's middle, read from the mass modelresolveAutoMovieCenterOfMassbuilds once per body: every profile segment a rigid part riding its bone, with its mass, centre and principal inertia.Airborne rotation, the response to an impulse and a pair's balance read the momenta and the composite tensor about the centre of mass (#3422). Units are kilograms, metres and seconds: linear momentum in kg m/s, angular momentum in kg m²/s, in the frame the bones are given in (the world, or a root's own frame when a caller passes root-frame bones).
Each segment's velocity is the chord of its centre over the interval and its angular velocity the rotation vector of its relative turn
Q1 Q0⁻¹, taken on the shorter arc (samplePoseVelocity.rotationVector), over the interval: both are central differences about the middle, with second-order error insecondsfor sufficiently smooth segment trajectories. Each segment's position and principal frame are read at the middle (the mean of its centres and the half-way slerp of its frames), and the angular momentum about the middle's centre of mass isΣ m (c - C) × v + R diag(I) Rᵀ ω, the segments' orbital and spin momenta. A rigid turn of the whole body byθover the interval introduces anO(θ²)orbital error through the mean positions and velocity chords. The logarithmic spin rate has no such universal scalar bias, and the complete relative momentum error depends on the mass distribution and motion; this stencil does not certify a relative error budget for a chosen interval.