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

Method processTick

Engine/source/T3D/fx/lightning.cpp:604–618  ·  view source on GitHub ↗

--------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

602
603//--------------------------------------------------------------------------
604void Lightning::processTick(const Move* move)
605{
606 Parent::processTick(move);
607
608 if (isServerObject() && !isHidden()) {
609 S32 msBetweenStrikes = (S32)(60.0 / strikesPerMinute * 1000.0);
610
611 mLastThink += TickMs;
612 if( mLastThink > msBetweenStrikes )
613 {
614 strikeRandomPoint();
615 mLastThink -= msBetweenStrikes;
616 }
617 }
618}
619
620void Lightning::interpolateTick(F32 dt)
621{

Callers

nothing calls this directly

Calls 1

isHiddenFunction · 0.85

Tested by

no test coverage detected