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

◆ StopWiggle()

override void ParticleSource::StopWiggle ( )
inlineprotected

Stops randomized wiggle.

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

965 {
966 bool wiggling = IsWiggling();
967
968 super.StopWiggle();
969
970 if (wiggling)
971 {
972 // Restore pre-wiggle orientation
973 int flags = ParticlePropertiesFlags.NONE;
974
976 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
977
978 ParticleProperties prop = new ParticleProperties(m_DefaultPos, flags, GetParticleParent(), m_DefaultOri, GetOwner());
979 ApplyProperties(prop);
980 }
981 }
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: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::IsWiggling(), Particle::m_DefaultOri, Particle::m_DefaultPos и Particle::m_ForceOrientationRelativeToWorld.

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