SetLayerDeformation¶
Description¶
Sets the deformation data array of deformID, based on deformA and deformB.
Parameters¶
deformID-
The ID of the layer to deform, valid values are:
-
- 0 (
DEFORM_FG)
- 0 (
-
- 1 (
DEFORM_FG_WATER)
- 1 (
-
- 2 (
DEFORM_BG)
- 2 (
-
- 3 (
DEFORM_BG_WATER)
- 3 (
waveLength-
Length of the wave.
waveWidth-
Width of the wave.
waveType-
Type of wave; 0 will affect the entire layer, 1 will use
yPosandwaveSizeto determine the area of effect. yPos-
The offset from where the wave will start.
waveSize-
The size of the wave.
Return Value¶
None.
Syntax¶
SetLayerDeformation(int deformID, int waveLength, int waveWidth, int waveType, int yPos, int waveSize)