LightningBolt

Engine/source/T3D/fx/lightning.h

More...

Classes:

Public Types

LightingBoltList 

Public Functions

createSplit(const Point3F & startPoint, const Point3F & endPoint, U32 depth, F32 width)
findHeight(Point3F & point, SceneManager * sceneManager)
renderSegment(NodeManager & segment, const Point3F & camPos, bool renderLastPoint)

Detailed Description

Public Types

typedef Torque::List< LightningBolt > LightingBoltList 

Public Attributes

F32 chanceOfSplit 
F32 elapsedTime 
Point3F endPoint 
F32 fadeTime 
bool isFading 
F32 lifetime 
F32 maxMajorAngle 
F32 maxMinorAngle 
NodeManager mMajorNodes 
Vector< NodeManager > mMinorNodes 
U32 numMajorNodes 
U32 numMinorNodes 
F32 percentFade 
F32 renderTime 
LightingBoltList splitList 
Point3F startPoint 
bool startRender 
F32 width 

Public Functions

LightningBolt()

~LightningBolt()

createSplit(const Point3F & startPoint, const Point3F & endPoint, U32 depth, F32 width)

findHeight(Point3F & point, SceneManager * sceneManager)

generate()

generateMinorNodes()

render(const Point3F & camPos)

renderSegment(NodeManager & segment, const Point3F & camPos, bool renderLastPoint)

startSplits()

update(F32 dt)