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

◆ RandomizeOrientation()

void ParticleSource::RandomizeOrientation ( )
inlineprivate

Randomizes a new orientation and applies it.

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

983 {
984 if (ToDelete())
985 return;
986
987 m_WiggleProcessing = true;
988
989 if ( !m_RandomizeOri.IsRunning() )
990 m_RandomizeOri.Run( Math.RandomFloat(0, m_MaxOriInterval) , this, "RandomizeOrientation", null, false);
991
992 int flags = ParticlePropertiesFlags.NONE;
993
995 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
996
997 ParticleProperties prop = new ParticleProperties(m_DefaultPos, flags, GetParticleParent(), m_DefaultOri + RandWiggleVector(), GetOwner());
998 ApplyProperties(prop);
999
1000 m_WiggleProcessing = false;
1001 }
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:547
override Object GetParticleParent()
Returns the parent of this Particle if there is one.
Определения ParticleSource.c:575
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().