Class cc.Waves
- Defined in: CCActionGrid3D.js
- Extends cc.Grid3DAction
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Waves()
cc.Waves action
|
Method Summary
Class Detail
cc.Waves()
cc.Waves action
Method Detail
-
initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} waves
- {Number} amplitude
- {Boolean} horizontal
- {Boolean} vertical
- Returns:
- {cc.Waves}
-
{Number} getAmplitude()get amplitude
- Returns:
- {Number}
-
{Number} getAmplitudeRate()get amplitude rate
- Returns:
- {Number}
-
{Boolean} initWithDuration(duration, gridSize, waves, amplitude, horizontal, vertical)initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} waves
- {Number} amplitude
- {Boolean} horizontal
- {Boolean} vertical
- Returns:
- {Boolean}
-
setAmplitude(amplitude)set amplitude
- Parameters:
- {Number} amplitude
-
setAmplitudeRate(amplitudeRate)set amplitude rate
- Parameters:
- {Number} amplitudeRate