C# Class MBLineEmitter, Pharos

Inheritance: MBEmitterType
Datei anzeigen Open project: rstaewen/Pharos

Public Properties

Property Type Description
DistributeOverTotal bool
DistributionPoints int
EvenlySpread bool
Points Vector3[]

Protected Properties

Property Type Description
mDistribution int
mDistributionStep float
mLengths float[]
mTotalLength float

Public Methods

Method Description
CalcLengths ( ) : void
GetDistributionPoint ( int distribution, bool overTotal ) : Vector3

Gets a distribution point in emitter's local scale

GetPosition ( MBParticle, PT ) : Vector3
OnPlay ( ) : void
Reset ( ) : void
SetDistribution ( int points, bool overTotal ) : void
Validate ( ) : void

Protected Methods

Method Description
DoGizmos ( ) : void

Method Details

CalcLengths() public method

public CalcLengths ( ) : void
return void

DoGizmos() protected method

protected DoGizmos ( ) : void
return void

GetDistributionPoint() public method

Gets a distribution point in emitter's local scale
public GetDistributionPoint ( int distribution, bool overTotal ) : Vector3
distribution int distribution index
overTotal bool whether segments length will taken into the calculation
return Vector3

GetPosition() public method

public GetPosition ( MBParticle, PT ) : Vector3
PT MBParticle,
return Vector3

OnPlay() public method

public OnPlay ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SetDistribution() public method

public SetDistribution ( int points, bool overTotal ) : void
points int
overTotal bool
return void

Validate() public method

public Validate ( ) : void
return void

Property Details

DistributeOverTotal public_oe property

Distribute over total length (slower) or over segment lengths
public bool DistributeOverTotal
return bool

DistributionPoints public_oe property

Number of spawnpoints the arc/circle will be divided into when evenly spread
public int DistributionPoints
return int

EvenlySpread public_oe property

True to spawn particles evenly spread along the arc/cirlce
public bool EvenlySpread
return bool

Points public_oe property

Array of line points
public Vector3[] Points
return Vector3[]

mDistribution protected_oe property

protected int mDistribution
return int

mDistributionStep protected_oe property

protected float mDistributionStep
return float

mLengths protected_oe property

protected float[] mLengths
return float[]

mTotalLength protected_oe property

protected float mTotalLength
return float