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

◆ RandomizeOrientation()

void ParticleSource::RandomizeOrientation ( )
inlineprivate

Randomizes a new orientation and applies it.

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

987 {
988 if (ToDelete())
989 return;
990
991 m_WiggleProcessing = true;
992
993 if ( !m_RandomizeOri.IsRunning() )
994 m_RandomizeOri.Run( Math.RandomFloat(0, m_MaxOriInterval) , this, "RandomizeOrientation", null, false);
995
996 int flags = ParticlePropertiesFlags.NONE;
997
999 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
1000
1001 ParticleProperties prop = new ParticleProperties(m_DefaultPos, flags, GetParticleParent(), m_DefaultOri + RandWiggleVector(), GetOwner());
1002 ApplyProperties(prop);
1003
1004 m_WiggleProcessing = false;
1005 }
vector m_DefaultPos
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:33
vector m_DefaultOri
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:31
bool m_ForceOrientationRelativeToWorld
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:29
bool m_WiggleProcessing
Used for Wiggle API, to signal that wiggle API is currently doing work.
Определения Particle.c:27
vector RandWiggleVector()
Helper to get a randomized wiggle vector.
Определения Particle.c:833
float m_MaxOriInterval
Used for Wiggle API, Interval for wiggling [0, m_MaxOriInterval[.
Определения Particle.c:42
ref Timer m_RandomizeOri
Used for Wiggle API, calls the Wiggle functionality.
Определения Particle.c:44
bool ApplyProperties(ParticleProperties properties)
Applies the properties given to the ParticleSource.
Определения ParticleSource.c:551
override Object GetParticleParent()
Returns the parent of this Particle if there is one.
Определения ParticleSource.c:579
proto native Class GetOwner()
Get the owner of this ParticleSource.

Перекрестные ссылки ApplyProperties(), GetOwner(), GetParticleParent(), Particle::m_DefaultOri, Particle::m_DefaultPos, Particle::m_ForceOrientationRelativeToWorld, Particle::m_MaxOriInterval, Particle::m_RandomizeOri, Particle::m_WiggleProcessing, Math::RandomFloat() и Particle::RandWiggleVector().