C4 Engine
C4 Engine API Documentation

LineWaveGenerator::SetGeneratorRadius

Defined in:  C4Water.h
Sets the radius of a line wave generator.
Prototype

void SetGeneratorRadius(float radius);

Parameters
radius The new wave generator radius.
Description
The SetGeneratorRadius function sets the radius of a line wave generator to that specified by the radius parameter. The radius determines the area inside which vertices on the water surface are affected by the wave generator.

If the radius of a wave generator is changed after it is already running, then the WaveGenerator::InvalidateWaveGenerator function should also be called to indicate that the wave generator needs to be updated.
See Also

LineWaveGenerator::GetGeneratorRadius

LineWaveGenerator::GetGeneratorPosition

LineWaveGenerator::SetGeneratorPosition