Torque3D Documentation / _generateds / SFXVariantFloat

SFXVariantFloat

Engine/source/sfx/sfxCommon.h

An array of float values with optional random variances.

More...

Public Attributes

mValue [NUM_VALUES]

Base value.

mVariance [NUM_VALUES][2]

Variance of value.

Public Functions

getValue(U32 index, F32 min, F32 max)

Detailed Description

An array of float values with optional random variances.

Public Attributes

F32 mValue [NUM_VALUES]

Base value.

F32 mVariance [NUM_VALUES][2]

Variance of value.

Final value will be

mClampF( randF( mValue + mVariance[ 0 ], mValue + mVariance[ 1 ] ), min, max )

with min and max being dependent on the context of the value.

Public Functions

getValue(U32 index, F32 min, F32 max)

validate()