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

Method updateEngineSound

Engine/source/T3D/vehicles/flyingVehicle.cpp:627–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625//----------------------------------------------------------------------------
626
627void FlyingVehicle::updateEngineSound(F32 level)
628{
629 if ( !mEngineSound )
630 return;
631
632 if ( !mEngineSound->isPlaying() )
633 mEngineSound->play();
634
635 mEngineSound->setTransform( getTransform() );
636 mEngineSound->setVelocity( getVelocity() );
637
638 mEngineSound->setPitch( level );
639}
640
641void FlyingVehicle::updateJet(F32 dt)
642{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected