Class cc.Ripple3D

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Ripple3D action

Method Summary

Class Detail

cc.Ripple3D()
cc.Ripple3D action

Method Detail

  • <static> {cc.Ripple3D} cc.Ripple3D.create(duration, gridSize, position, radius, waves, amplitude)
    creates the action with radius, number of waves, amplitude, a grid size and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {cc.Point} position
    {Number} radius
    {Number} waves
    {Number} amplitude
    Returns:
    {cc.Ripple3D}
  • {Number} getAmplitude()
    get Amplitude
    Returns:
    {Number}
  • {*} getAmplitudeRate()
    get Amplitude rate
    Returns:
    {*}
  • {cc.Point} getPosition()
    get center position
    Returns:
    {cc.Point}
  • {Boolean} initWithDuration(duration, gridSize, position, radius, waves, amplitude)
    initializes the action with radius, number of waves, amplitude, a grid size and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {cc.Point} position
    {Number} radius
    {Number} waves
    {Number} amplitude
    Returns:
    {Boolean}
  • setAmplitude(amplitude)
    set Amplitude
    Parameters:
    {Number} amplitude
  • setAmplitudeRate(amplitudeRate)
    get amplitude rate
    Parameters:
    {Number} amplitudeRate
  • setPosition(position)
    set center position
    Parameters:
    {cc.Point} position