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

Method getElapsedPlayTimeCurrentCycle

Engine/source/sfx/sfxSource.cpp:467–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465//-----------------------------------------------------------------------------
466
467F32 SFXSource::getElapsedPlayTimeCurrentCycle() const
468{
469 // In this base class, we can't make assumptions about total playtimes
470 // and thus cannot clamp the playtimer into range for the current cycle.
471 // This needs to be done by subclasses.
472
473 return F32( mPlayTimer.getPosition() ) / 1000.f;
474}
475
476//-----------------------------------------------------------------------------
477

Callers

nothing calls this directly

Calls 1

getPositionMethod · 0.45

Tested by

no test coverage detected