MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Moved

Method Moved

Source/Objects/ambientsoundobject.cpp:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void AmbientSoundObject::Moved(Object::MoveType type) {
90 Object::Moved(type);
91 if (type & kTranslate && scenegraph_) {
92 Engine::Instance()->GetSound()->SetPosition(sound_handle, GetTranslation());
93 }
94}
95
96bool AmbientSoundObject::InCameraRange() {
97 const float _threshold_distance = 10.0f;

Callers

nothing calls this directly

Calls 3

GetTranslationFunction · 0.85
GetSoundMethod · 0.80
SetPositionMethod · 0.45

Tested by

no test coverage detected