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

Method getElapsedPlayTimeCurrentCycle

Engine/source/sfx/sfxSource.cpp:466–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getPositionMethod · 0.45

Tested by

no test coverage detected