Class cc.Lens3D
- Defined in: CCActionGrid3D.js
- Extends cc.FlipX3D
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Lens3D action
|
Method Summary
Class Detail
cc.Lens3D()
cc.Lens3D action
Method Detail
-
creates the action with center position, radius, a grid size and duration
- Returns:
- {cc.Lens3D}
-
{Number} getLensEffect()Get lens center position
- Returns:
- {Number}
-
{cc.Point} getPosition()get Position
- Returns:
- {cc.Point}
-
{Boolean} initWithDuration(duration, gridSize, position, radius)initializes the action with center position, radius, a grid size and duration
- Returns:
- {Boolean}
-
setConcave(concave)Set whether lens is concave
- Parameters:
- {Boolean} concave
-
setLensEffect(lensEffect)Set lens center position
- Parameters:
- {Number} lensEffect
-
setPosition(position)set Position
- Parameters:
- {cc.Point} position