Physics
The rig is a set of pendulum chains. Some parameters push them (head angle, body angle) and the swing writes other parameters (hair, accessories).
- Physics is on after load when the model has a rig.
ay2d_set_physics(m, 0)holds it, so you can drive those parameters by hand. ay2d_set_wind(m, x, y)adds a steady push, in the units gravity has (gravity is0, −1).ay2d_reset_physicssettles everything at once, for a scene cut or a teleport.- A long frame is stepped as one long step. If your frames can stall, clamp
dt(to 1/15 s, say) before passing it.