MCPcopy Create free account
hub / github.com/defold/defold / CursorToTime

Function CursorToTime

engine/rig/src/rig.cpp:408–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 }
407
408 static float CursorToTime(float cursor, float duration, bool backwards, bool once_pingpong)
409 {
410 float t = cursor;
411 if (backwards)
412 t = duration - t;
413 if (once_pingpong && t > duration * 0.5f)
414 {
415 t = duration - t;
416 }
417 return t;
418 }
419
420 static MorphWeightSlot* GetMorphWeightSlot(RigInstance* instance, uint64_t model_id)
421 {

Callers 2

ApplyMorphAnimationFunction · 0.85
ApplyAnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected