37 lines
990 B
Ucode
37 lines
990 B
Ucode
|
/**
|
||
|
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
|
||
|
*/
|
||
|
class ParticleModuleVelocityOverLifetime extends ParticleModuleVelocityBase
|
||
|
native(Particle)
|
||
|
editinlinenew
|
||
|
hidecategories(Object);
|
||
|
|
||
|
/**
|
||
|
* The scaling value applied to the velocity.
|
||
|
* Value is retrieved using the RelativeTime of the particle.
|
||
|
*/
|
||
|
var(Velocity) rawdistributionvector VelOverLife;
|
||
|
/**
|
||
|
* If true, the velocity will be SET to the value from the above dist.
|
||
|
* If false, the velocity will be scaled by the above dist.
|
||
|
*/
|
||
|
var(Velocity) export bool Absolute;
|
||
|
|
||
|
cpptext
|
||
|
{
|
||
|
virtual void Spawn(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime);
|
||
|
virtual void Update(FParticleEmitterInstance* Owner, INT Offset, FLOAT DeltaTime);
|
||
|
}
|
||
|
|
||
|
defaultproperties
|
||
|
{
|
||
|
bSpawnModule=true
|
||
|
bUpdateModule=true
|
||
|
|
||
|
Begin Object Class=DistributionVectorConstantCurve Name=DistributionVelOverLife
|
||
|
End Object
|
||
|
VelOverLife=(Distribution=DistributionVelOverLife)
|
||
|
|
||
|
Absolute=false
|
||
|
}
|