Class cc.WavesTiles3D

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.WavesTiles3D(duration, gridSize, waves, amplitude)
cc.WavesTiles3D action.

Method Summary

Class Detail

cc.WavesTiles3D(duration, gridSize, waves, amplitude)
cc.WavesTiles3D action.
Reference the test cases (Effects Test)
Parameters:
{Number} duration
{cc.Size} gridSize
{Number} waves
{Number} amplitude

Field Detail

<static> {cc.WavesTiles3D} cc.WavesTiles3D.create
Please use cc.wavesTiles3D instead creates the action with a number of waves, the waves amplitude, the grid size and the duration.
Reference the test cases (Effects Test)
Deprecated:
since v3.0
Please use cc.wavesTiles3D instead.

Method Detail

  • ctor(duration, gridSize, waves, amplitude)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    creates the action with a number of waves, the waves amplitude, the grid size and the duration.
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {Number} waves
    {Number} amplitude
  • {Number} getAmplitude()
    get amplitude of waves
    Returns:
    {Number}
  • {Number} getAmplitudeRate()
    get amplitude rate of waves
    Returns:
    {Number}
  • {Boolean} initWithDuration(duration, gridSize, waves, amplitude)
    initializes the action with a number of waves, the waves amplitude, the grid size and the duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {Number} waves
    {Number} amplitude
    Returns:
    {Boolean}
  • setAmplitude(amplitude)
    set amplitude of waves
    Parameters:
    {Number} amplitude
  • setAmplitudeRate(amplitudeRate)
    set amplitude rate of waves
    Parameters:
    {Number} amplitudeRate
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt