Click or drag to resize

LightningGenerator Class

Lightning generator base class
Inheritance Hierarchy

Namespace:  DigitalRuby.ThunderAndLightning
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class LightningGenerator

The LightningGenerator type exposes the following members.

Constructors
  NameDescription
Public methodLightningGenerator
Initializes a new instance of the LightningGenerator class
Top
Methods
  NameDescription
Public methodCreateFork
Create a fork in a lightning bolt
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGenerateLightningBolt(LightningBolt, LightningBoltParameters)
Generate a lightning bolt
Public methodGenerateLightningBolt(LightningBolt, LightningBoltParameters, Vector3, Vector3)
Generate a lightning bolt
Public methodGenerateLightningBoltStandard
Generate a normal/standard lightning bolt
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnGenerateLightningBolt
Fires when a lightning bolt needs to be generated
Public methodRandomDirection2D
Get random 2D direction in XY plane
Public methodRandomDirection2DXZ
Get random 2D direction in XZ plane
Public methodRandomDirection3D
Get a random 3D direction
Public methodRandomVector
Generate a random vector
Public methodShouldCreateFork
Determines if a fork should be created
Public methodToString (Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberGeneratorInstance
Singleton lightning generator instance
Top
See Also