LightningBoltParameters Class |
Namespace: DigitalRuby.ThunderAndLightning
The LightningBoltParameters type exposes the following members.
Name | Description | |
---|---|---|
LightningBoltParameters |
Constructor
|
Name | Description | |
---|---|---|
Generations |
Number of generations (0 for just a point light, otherwise 1 - 8). Higher generations have lightning with finer detail but more expensive to create.
| |
GrowthMultiplier |
A value between 0 and 0.999 that determines how fast the lightning should grow over the lifetime. A value of 1 grows slowest, 0 grows instantly
| |
Points |
Points for the trunk to follow - not all generators support this
| |
Random |
Used to generate random numbers. Not thread safe.
| |
RandomOverride |
Override Random to a different Random. This gets set back to null when the parameters go back to the cache. Great for a one time bolt that looks a certain way.
|
Name | Description | |
---|---|---|
ApplyVariance |
Apply variance to a vector
| |
Equals | (Inherited from Object.) | |
ForkMultiplier |
Get a multiplier for fork distance
| |
GetHashCode | (Inherited from Object.) | |
GetOrCreateParameters |
Get or create lightning bolt parameters. If cache has parameters, one is taken, otherwise a new object is created. NOT thread safe.
| |
GetType | (Inherited from Object.) | |
Reset |
Reset parameters
| |
ReturnParametersToCache |
Return parameters to cache. NOT thread safe.
| |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
ChaosFactor |
How chaotic is the main trunk of lightning? (0 - 1). Higher numbers create more chaotic lightning.
| |
ChaosFactorForks |
How chaotic are the forks of the lightning? (0 - 1). Higher numbers create more chaotic lightning.
| |
Color |
Tint color for the lightning, this is applied to both the lightning and the glow. Unlike the script properties for coloring which
are applied per material, this is applied at the mesh level and as such different bolts on the same script can use different color values.
| |
CustomTransform |
Custom transform action, null if none
| |
Delay |
Minimum delay
| |
DelayRange |
How long to wait in seconds before starting additional lightning bolts
| |
End |
End of the bolt
| |
EndVariance |
X, Y and Z radius variance from End
| |
EndWidthMultiplier |
The ending width of a segment of lightning
| |
FadeFullyLitMultiplier |
Modify the fully lit time for FadePercent (0 - 1)
| |
FadeInMultiplier |
Modify the fade in time for FadePercent (0 - 1)
| |
FadeOutMultiplier |
Modify the fade out time for FadePercent (0 - 1)
| |
FadePercent |
The percent of time the lightning should fade in and out (0 - 1). Example: 0.2 would fade in for 20% of the lifetime and fade out for 20% of the lifetime. Set to 0 for no fade.
| |
Forkedness |
How forked the lightning should be, 0 for none, 1 for LOTS of forks
| |
ForkEndWidthMultiplier |
Forks will have their end widths multiplied by this value
| |
ForkLengthMultiplier |
Minimum distance multiplier for forks
| |
ForkLengthVariance |
Variance of the fork distance (random range of 0 to n is added to ForkLengthMultiplier)
| |
GenerationWhereForksStopSubtractor |
This is subtracted from the initial generations value, and any generation below that cannot have a fork
| |
Generator |
Generator to create the lightning bolt from the parameters
| |
GlowIntensity |
Intensity of the glow
| |
GlowWidthMultiplier |
Glow width multiplier
| |
Intensity |
Intensity of the lightning
| |
LifeTime |
How long the bolt should live in seconds
| |
LightParameters |
Light parameters, null for none
| |
QualityMaximums |
Contains quality settings for different quality levels. By default, this assumes 6 quality levels, so if you have your own
custom quality setting levels, you may want to clear this dictionary out and re-populate it with your own limits
| |
Scale |
Scale all scalar parameters by this value (i.e. trunk width, turbulence, turbulence velocity)
| |
SmoothingFactor |
The amount of smoothing applied. For example, if there were 4 original points and smoothing / spline created 32 points, this value would be 8 - not all generators support this
| |
Start |
Start of the bolt
| |
StartVariance |
X, Y and Z radius variance from Start
| |
TrunkWidth |
The width of the trunk
|