Class cc.Shaky3D
- Defined in: CCActionGrid3D.js
- Extends cc.Grid3DAction
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Shaky3D(duration, gridSize, range, shakeZ)
cc.Shaky3D action.
|
Method Summary
Class Detail
cc.Shaky3D(duration, gridSize, range, shakeZ)
cc.Shaky3D action.
Reference the test cases (Effects Test)
Reference the test cases (Effects Test)
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} range
- {Boolean} shakeZ
Field Detail
Please use cc.shaky3D instead
creates the action with a range, shake Z vertices, a grid and duration
- Deprecated:
-
since v3.0
Please use cc.shaky3D instead.
Method Detail
-
ctor(duration, gridSize, range, shakeZ)Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
Create a shaky3d action with a range, shake Z vertices.- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} range
- {Boolean} shakeZ
-
{Boolean} initWithDuration(duration, gridSize, range, shakeZ)initializes the action with a range, shake Z vertices, a grid and duration
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} range
- {Boolean} shakeZ
- Returns:
- {Boolean}
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt