Package | laya.d3.core.particleShuriKen.module.shape |
Class | public class CircleShape |
Inheritance | CircleShape BaseShape Object |
CircleShape
类用于创建环形粒子形状。
Property | Defined By | ||
---|---|---|---|
arc : Number 环形弧度。 | CircleShape | ||
emitFromEdge : Boolean 从边缘发射。 | CircleShape | ||
enable : Boolean 是否启用。 | BaseShape | ||
radius : Number 发射器半径。 | CircleShape | ||
randomDirection : Boolean 随机方向。 | BaseShape |
Method | Defined By | ||
---|---|---|---|
创建一个 CircleShape 实例。
| CircleShape | ||
clone():*
克隆。
| BaseShape | ||
cloneTo(destObject:*):void [override] | CircleShape | ||
generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void [override]
用于生成粒子初始位置和方向。
| CircleShape |
Method | Defined By | ||
---|---|---|---|
_getShapeBoundBox(boundBox:BoundBox):void [override]
| CircleShape | ||
_getSpeedBoundBox(boundBox:BoundBox):void [override]
| CircleShape |
arc | property |
public var arc:Number
环形弧度。
emitFromEdge | property |
public var emitFromEdge:Boolean
从边缘发射。
radius | property |
public var radius:Number
发射器半径。
CircleShape | () | Constructor |
public function CircleShape()
创建一个 CircleShape
实例。
_getShapeBoundBox | () | method |
_getSpeedBoundBox | () | method |
cloneTo | () | method |
override public function cloneTo(destObject:*):void
Parameters
destObject:* |
generatePositionAndDirection | () | method |
override public function generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void
用于生成粒子初始位置和方向。
Parameters
position:Vector3 — 粒子位置。
| |
direction:Vector3 — 粒子方向。
| |
rand:Rand (default = null )
| |
randomSeeds:Uint32Array (default = null )
|