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

◆ StopWiggle()

override void ParticleSource::StopWiggle ( )
inlineprotected

Stops randomized wiggle.

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

961 {
962 bool wiggling = IsWiggling();
963
964 super.StopWiggle();
965
966 if (wiggling)
967 {
968 // Restore pre-wiggle orientation
969 int flags = ParticlePropertiesFlags.NONE;
970
972 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
973
974 ParticleProperties prop = new ParticleProperties(m_DefaultPos, flags, GetParticleParent(), m_DefaultOri, GetOwner());
975 ApplyProperties(prop);
976 }
977 }
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 IsWiggling()
Checks if particle is currently wiggling.
Определения Particle.c:763
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::IsWiggling(), Particle::m_DefaultOri, Particle::m_DefaultPos и Particle::m_ForceOrientationRelativeToWorld.

Используется в OnParticleStop() и OnParticleUnParented().