1
0
KF2-Dev-Scripts/Engine/Classes/ParticleModuleRotationRate.uc

46 lines
1.4 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class ParticleModuleRotationRate extends ParticleModuleRotationRateBase
native(Particle)
editinlinenew
hidecategories(Object);
/**
* Initial rotation rate, in rotations per second.
* The value is retrieved using the EmitterTime.
*/
var(Rotation) rawdistributionfloat StartRotationRate;
cpptext
{
virtual void Spawn(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime);
/**
* Extended version of spawn, allows for using a random stream for distribution value retrieval
*
* @param Owner The particle emitter instance that is spawning
* @param Offset The offset to the modules payload data
* @param SpawnTime The time of the spawn
* @param InRandomStream The random stream to use for retrieving random values
*/
void SpawnEx(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime, class FRandomStream* InRandomStream);
/**
* Called when the module is created, this function allows for setting values that make
* sense for the type of emitter they are being used in.
*
* @param Owner The UParticleEmitter that the module is being added to.
*/
virtual void SetToSensibleDefaults(UParticleEmitter* Owner);
}
defaultproperties
{
bSpawnModule=true
Begin Object Class=DistributionFloatConstant Name=DistributionStartRotationRate
End Object
StartRotationRate=(Distribution=DistributionStartRotationRate)
}