C4 Engine
C4 Engine API Documentation

PointWaveGenerator::SetGeneratorPosition

Defined in:  C4Water.h
Sets the position of a point wave generator.
Prototype

void SetGeneratorPosition(const Point2D& position);

Parameters
position The new wave generator position.
Description
The SetGeneratorPosition function sets the position of a point wave generator to that specified by the position parameter. The position coordinates should be specified in the local coordinate system of the water block to which the generator pertains.

If the position 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

PointWaveGenerator::GetGeneratorPosition

PointWaveGenerator::GetGeneratorRadius

PointWaveGenerator::SetGeneratorRadius