MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setTimeScale

Method setTimeScale

Engine/source/gui/editor/guiShapeEdPreview.cpp:466–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466void GuiShapeEdPreview::setTimeScale( F32 scale )
467{
468 // Update time scale for all threads
469 mTimeScale = scale;
470 for ( S32 i = 0; i < mThreads.size(); i++ )
471 {
472 if ( mThreads[i].key )
473 mModel->setTimeScale( mThreads[i].key, mTimeScale * mThreads[i].direction );
474 }
475}
476
477void GuiShapeEdPreview::setActiveThreadSequence(const char* seqName, F32 duration, F32 pos, bool play)
478{

Callers 5

setFieldThreadDirMethod · 0.45
setThreadSequenceMethod · 0.45
setMountThreadDirMethod · 0.45
updateThreadsMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected