54 lines
1.7 KiB
Ucode
54 lines
1.7 KiB
Ucode
/**
|
|
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
|
|
*/
|
|
class ParticleModuleMeshRotationRate extends ParticleModuleRotationRateBase
|
|
native(Particle)
|
|
editinlinenew
|
|
hidecategories(Object);
|
|
|
|
/**
|
|
* Initial rotation rate, in rotations per second.
|
|
* The value is retrieved using the EmitterTime.
|
|
*/
|
|
var(Rotation) rawdistributionvector 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);
|
|
|
|
/**
|
|
* Return TRUE if this module impacts rotation of Mesh emitters
|
|
* @return UBOOL TRUE if the module impacts mesh emitter rotation
|
|
*/
|
|
virtual UBOOL TouchesMeshRotation() const { return TRUE; }
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
bSpawnModule=true
|
|
bUpdateModule=true
|
|
|
|
Begin Object Class=DistributionVectorUniform Name=DistributionStartRotationRate
|
|
Min=(X=0.0,Y=0.0,Z=0.0)
|
|
Max=(X=360.0,Y=360.0,Z=360.0)
|
|
End Object
|
|
StartRotationRate=(Distribution=DistributionStartRotationRate)
|
|
}
|