Raindrop

Engine/source/T3D/fx/precipitation.h

More...

Public Attributes

Animation time tracker.

Point at which the drop will collide with something.

What kind of object the drop will hit.

Mass of drop used for how much turbulence/wind effects the drop.

linked list cruft

Linked list cruft for easily adding/removing stuff from the splash list.

Position of the drop.

Same as next but previous!

Interpolated render-position of the drop.

Which piece of the material will be used.

Time into the turbulence function.

bool

Don't want to render all drops, just the ones that pass a few tests.

bool

Drop becomes invalid after hitting something.

How fast the drop is falling downwards.

Public Functions

Detailed Description

Public Attributes

SimTime animStartTime 

Animation time tracker.

Point3F hitPos 

Point at which the drop will collide with something.

U32 hitType 

What kind of object the drop will hit.

F32 mass 

Mass of drop used for how much turbulence/wind effects the drop.

Raindrop * next 

linked list cruft

Raindrop * nextSplashDrop 

Linked list cruft for easily adding/removing stuff from the splash list.

Point3F position 

Position of the drop.

Raindrop * prevSplashDrop 

Same as next but previous!

Point3F renderPosition 

Interpolated render-position of the drop.

U32 texCoordIndex 

Which piece of the material will be used.

F32 time 

Time into the turbulence function.

bool toRender 

Don't want to render all drops, just the ones that pass a few tests.

bool valid 

Drop becomes invalid after hitting something.

Just keep updating the position of it, but don't render until it hits the bottom of the renderbox and respawns

F32 velocity 

How fast the drop is falling downwards.

Public Functions

Raindrop()