DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetCurrentLocalPosition()

override vector EffectSound::GetCurrentLocalPosition ( )
inlineprotected

Get the current local position of the managed sound.

Возвращает
vector The current local position of the managed sound

См. определение в файле EffectSound.c строка 760

761 {
762 Object parent = GetParent();
763
764 if (m_SoundObject)
765 {
766 //TODO(kumarjac): Create and expose 'SoundObject.GetLocalPosition'
767 if (parent)
768 return parent.WorldToModel(m_SoundObject.GetPosition());
769 else
770 return m_SoundObject.GetPosition();
771 }
772 else
773 {
774 if (parent)
775 return GetLocalPosition();
776 else
777 return GetPosition();
778 }
779
780 return vector.Zero;
781 }
vector GetLocalPosition()
Get the local position of the Effect.
Определения Effect.c:513
override Object GetParent()
Get parent for the EffectSound.
Определения EffectSound.c:672
ref SoundObject m_SoundObject
Определения EffectSound.c:22
class LOD Object
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки GetLocalPosition(), GetParent(), GetPosition(), m_SoundObject и vector::Zero.

Используется в SoundPlayEx().