What are the Newton-Euler equations for a rigid body, and what does the gyroscopic term ω × (Iω) contribute to its rotation?
answer
- torque changes angular momentum
- the world tensor turns with the body
- L conserved, omega not
- zero when omega is parallel to I·omega
basics
~20 sNewton-Euler gives F = m·a for the centre of mass and τ = I·dω/dt + ω × (Iω) for rotation. The gyroscopic term arises because the world-space inertia turns with the body; it keeps angular momentum, not angular velocity, constant without torque, producing wobble.
solid answer
~50 sLinear motion is `F = m * dv/dt` for the centre of mass. Rotation follows from `dL/dt = tau` with `L = I_world * omega`; because `I_world` turns with the body, differentiating gives `tau = I_world * domega/dt + cross(omega, I_world * omega)`. In the principal frame these are Euler's equations, for example `I1 * domega1/dt + (I3 - I2) * omega2 * omega3 = tau1`. The gyroscopic term means that with no torque, angular momentum is conserved but angular velocity is not: a body spinning about a tilted axis wobbles, and spin about the intermediate principal axis flips. It is zero for a sphere or a spin exactly about a principal axis. Games sometimes drop it, which loses the wobble of planks and plates, or treat it carefully, because an explicit evaluation can add energy to long thin bodies.
go deeper
Recall that linear motion follows F = m·a and rotation follows torque changing angular momentum, with the inertia tensor in the role of mass.
Explain why rotation has an extra term that linear motion does not: the world-space inertia tensor turns with the body.
Derive the gyroscopic term from dL/dt = τ, say when it vanishes, and connect it to wobble, intermediate-axis flips and energy gain on thin bodies.
Weigh dropping, explicit or implicit gyroscopic handling for a game's body shapes, trading the wobble of irregular bodies against stability and cost.
## The Newton-Euler equations A rigid body has six degrees of freedom: three for the position of its **centre of mass** and three for its orientation. The **Newton-Euler equations** give the motion of both, about the centre of mass: - **Newton (linear):** `F = m * dv/dt`, where `F` is the net force and `v` the velocity of the centre of mass. - **Euler (angular), in world space:** `tau = I_world * domega/dt + cross(omega, I_world * omega)`, where `tau` is the net torque about the centre of mass, `omega` the angular velocity and `I_world` the world-space inertia tensor. The linear equation is the familiar one. The angular one has an extra term, `cross(omega, I * omega)`, the **gyroscopic term**. It has no linear counterpart, and it is what interviewers probe. ## Where the gyroscopic term comes from The fundamental law is that torque is the rate of change of angular momentum: `dL/dt = tau`, with `L = I_world * omega`. Differentiating the product: 1. `dL/dt = (dI_world/dt) * omega + I_world * domega/dt`. 2. Mass does not move inside a rigid body, but `I_world` changes because the body turns. With `I_world = R * I_body * transpose(R)` and `dR/dt = skew(omega) * R`, the derivative is `dI_world/dt = skew(omega) * I_world - I_world * skew(omega)`, where `skew(omega) * x = cross(omega, x)`. 3. Applied to `omega`, the second part vanishes because `cross(omega, omega) = 0`, leaving `(dI_world/dt) * omega = cross(omega, I_world * omega)`. So `tau = I_world * domega/dt + cross(omega, I_world * omega)`. In the body's principal frame, with principal moments `I1`, `I2`, `I3`, this becomes Euler's classical equations, whose first component reads `I1 * domega1/dt + (I3 - I2) * omega2 * omega3 = tau1`, and the others follow by cycling the indices. ## What the term does The key consequence: **with no torque, angular momentum is conserved, but angular velocity generally is not.** - When `omega` is parallel to `I * omega`, the cross product is zero and the body spins steadily. That happens for every axis of a **sphere** or uniform cube, whose tensor is a multiple of the identity, and for a spin exactly about any **principal axis** of other bodies. - For a tilted spin on a body with unequal moments, `omega` and `L` point in different directions; `L` stays fixed, so `omega` must wander around it. That is the **wobble** (torque-free precession) of a thrown plate or a spinning plank. - Spin about the axis with the **intermediate** moment is unstable: a tiny perturbation grows into periodic flips. This is the **intermediate axis theorem**, seen when a spinning wing nut or a tennis racket flips over. | Body and spin | Gyroscopic term | Torque-free motion | |---|---|---| | Sphere, any axis | zero | steady spin | | Box, exactly about a principal axis | zero | steady (unstable about the intermediate axis) | | Plank, tilted axis | non-zero | wobble around a fixed L | ## What games do with it Dropping the term makes `omega` constant under zero torque. Spheres and near-cubes look identical either way, so many games never notice. Long, flat or irregular bodies lose their wobble, and a thrown plank spins like a rigid propeller. Keeping it has a numerical catch that belongs mostly to integration: evaluated explicitly, the term can **inject energy** into long thin bodies at large steps, so they spin faster and faster. For that reason some engines omit it by default and others treat it implicitly. A related choice is to carry **angular momentum** as the state and derive `omega = invI_world * L` each step; with no torque, `L` then stays exactly constant and the wobble falls out of the changing `I_world`. The term also appears in constraint solvers, which write a body's equations of motion as one 6x6 system, a mass matrix with `m * E` and `I_world` on its diagonal, with the gyroscopic term moved to the right-hand side as a velocity-dependent torque. ## A strong interview answer - States both equations, about the centre of mass, in a named frame. - Derives the gyroscopic term from `dL/dt = tau` and the turning `I_world`. - Says that `L`, not `omega`, is conserved without torque, and when the term is zero. - Names the trade-off: realism for irregular bodies against the risk of injected energy, which is why engines differ.
- Why might a physics engine leave the gyroscopic term out?For spheres and near-cubes it changes almost nothing, while evaluated explicitly on long thin bodies at large steps it can feed energy into the spin until they whirl faster and faster. Omitting it trades the wobble of irregular bodies for robustness; treating it implicitly keeps the wobble without the energy gain, at extra cost.
- What changes if a simulation stores angular momentum instead of angular velocity as the state?Each step updates `L` by the torque and derives `omega = invI_world * L` from the current orientation. With no torque `L` stays exactly constant, and the wobble appears on its own because `invI_world` changes as the body turns. Angular velocity becomes a derived value, which every contact and joint calculation then reads.
- With no torque, a spinning rigid body keeps a constant angular velocity.
- The gyroscopic term is a numerical correction, not part of the physics.
- The gyroscopic term matters for spheres spinning fast.
- Euler's equation is just tau = I times angular acceleration, like F = m a.
- The world-space inertia tensor is constant because the body is rigid.