Advance a one-dimensional damped spring one fixed timestep (semi-implicit
Euler): a generic numeric integrator for secondary motion, a value that
lags, overshoots, and settles toward a moving target instead of snapping to
it. Driving a tail or ear joint's angle through this off the animated target
gives the follow-through a physics joint produces, while staying a pure,
deterministic function (same inputs → same output, replayable
frame-for-frame).
force = stiffness·(target − current) − damping·velocity, integrated as
velocity += force·dt; value += velocity·dt. Unlike the world-space
stepSpring (VRM SpringBone, for the Node/Channel core), this works in
the humanoid pose path's angle space.
Finite inputs, nonnegative coefficients and positive dt are required. The caller chooses a timestep appropriate to the coefficients; the explicit step does not guarantee stability for arbitrary dt or prevent arithmetic overflow at extreme magnitudes.
Advance a one-dimensional damped spring one fixed timestep (semi-implicit Euler): a generic numeric integrator for secondary motion, a value that lags, overshoots, and settles toward a moving target instead of snapping to it. Driving a tail or ear joint's angle through this off the animated target gives the follow-through a physics joint produces, while staying a pure, deterministic function (same inputs → same output, replayable frame-for-frame).
force = stiffness·(target − current) − damping·velocity, integrated asvelocity += force·dt; value += velocity·dt. Unlike the world-space stepSpring (VRM SpringBone, for the Node/Channel core), this works in the humanoid pose path's angle space. Finite inputs, nonnegative coefficients and positive dt are required. The caller chooses a timestep appropriate to the coefficients; the explicit step does not guarantee stability for arbitrary dt or prevent arithmetic overflow at extreme magnitudes.