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

Method updateSound

Engine/source/T3D/projectile.cpp:1103–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1101}
1102
1103void Projectile::updateSound()
1104{
1105 if (!mDataBlock->isProjectileSoundValid())
1106 return;
1107
1108 if ( mSound )
1109 {
1110 if ( mHasExploded )
1111 mSound->stop();
1112 else
1113 {
1114 if ( !mSound->isPlaying() )
1115 mSound->play();
1116
1117 mSound->setVelocity( getVelocity() );
1118 mSound->setTransform( getRenderTransform() );
1119 }
1120 }
1121}
1122
1123void Projectile::processTick( const Move *move )
1124{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected