Class cc.ShatteredTiles3D

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.ShatteredTiles3D(duration, gridSize, range, shatterZ)
cc.ShatteredTiles3D action.

Method Summary

Class Detail

cc.ShatteredTiles3D(duration, gridSize, range, shatterZ)
cc.ShatteredTiles3D action.
Reference the test cases (Effects Test)
Parameters:
{Number} duration
{cc.Size} gridSize
{Number} range
{Boolean} shatterZ

Field Detail

<static> {cc.ShatteredTiles3D} cc.ShatteredTiles3D.create
Please use cc.shatteredTiles3D instead.
Creates the action with a range, whether of not to shatter Z vertices, a grid size and duration.
Reference the test cases (Effects Test)
Deprecated:
since v3.0
Please use cc.shatteredTiles3D instead.

Method Detail

  • ctor(duration, gridSize, range, shatterZ)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Creates the action with a range, whether of not to shatter Z vertices, a grid size and duration.
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {Number} range
    {Boolean} shatterZ
  • {Boolean} initWithDuration(duration, gridSize, range, shatterZ)
    Initializes the action with a range, whether or not to shatter Z vertices, a grid size and duration.
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {Number} range
    {Boolean} shatterZ
    Returns:
    {Boolean}
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt