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

Method updateSound

Engine/source/afx/afxMagicMissile.cpp:1995–2008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1993}
1994
1995void afxMagicMissile::updateSound()
1996{
1997 if (!mDataBlock->isProjectileSoundValid())
1998 return;
1999
2000 if ( mSound )
2001 {
2002 if ( !mSound->isPlaying() )
2003 mSound->play();
2004
2005 mSound->setVelocity( getVelocity() );
2006 mSound->setTransform( getRenderTransform() );
2007 }
2008}
2009
2010//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
2011// public:

Callers

nothing calls this directly

Calls 5

getVelocityFunction · 0.85
isPlayingMethod · 0.45
playMethod · 0.45
setVelocityMethod · 0.45
setTransformMethod · 0.45

Tested by

no test coverage detected