CM2Model::Animate
function · models · primitive
- Address
0x714260· 17703 bytes, up to0x718786- Meaning
- Computes an instance's bone matrices and animated colours, textures, lights, emitters and children
- Confidence
- verified, proof one
- Finding
- models/animation#sequence-time
- Test
animation::m2_animate_difftest
Finding: Sequence time in models: animation
Each frame a bone with a primary sequence computes its time. For a looping sequence it is
start + (ftol((now − startStamp)·speed) + offset) mod (end − start), or start for an empty
range. A sequence with flag 1 plays once: at or past its end stamp the time is start + ftol((endStamp − startStamp)·speed) + offset, or start when that sum is negative and end when
it exceeds the length; before its end stamp the looping formula runs with now raised to the start
stamp. A paused instance moves both stamps forward by the pause.
The derivation is in the doc.
Callers 4
- M2SceneAnimateOddJob models
- M2SceneAnimateAndCollect models
- CM2Model::EnsureAnimated models
- CM2Model::UpdateAfterAnimate models
Callees 15
- _atexit crt
- __ftol crt
- Vector3LengthSquared spline
- CM2Model::FindKey models
- M2SampleRotation models
- M2SampleByteTrack models
- M2SampleFloatTrack models
- M2TrackValueAddress models
- M2CopyWord models
- MultiplyMatrixDispatch d3dx
- MatrixFromQuaternionDispatch d3dx
- CParticleEmitter2::HasLiveParticles models
- TranslateMatrix cmath
- ScaleMatrixRows cmath
- RotateMatrixByQuaternion cmath
Calls and jumps by a bare address, from tables/calls.tsv.