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