| Package | laya.d3.core.particleShuriKen.module.shape |
| Class | public class ConeShape |
| Inheritance | ConeShape BaseShape Object |
ConeShape 类用于创建锥形粒子形状。
| Property | Defined By | ||
|---|---|---|---|
| angle : Number 发射角度。 | ConeShape | ||
| emitType : int 发射类型,0为Base,1为BaseShell,2为Volume,3为VolumeShell。 | ConeShape | ||
![]() | enable : Boolean 是否启用。 | BaseShape | |
| length : Number 椎体长度。 | ConeShape | ||
| radius : Number 发射器半径。 | ConeShape | ||
![]() | randomDirection : Boolean 随机方向。 | BaseShape | |
| Method | Defined By | ||
|---|---|---|---|
创建一个 ConeShape 实例。
| ConeShape | ||
![]() | clone():*
克隆。
| BaseShape | |
cloneTo(destObject:*):void [override] | ConeShape | ||
generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void [override]
用于生成粒子初始位置和方向。
| ConeShape | ||
| Method | Defined By | ||
|---|---|---|---|
_getShapeBoundBox(boundBox:BoundBox):void [override]
| ConeShape | ||
_getSpeedBoundBox(boundBox:BoundBox):void [override]
| ConeShape | ||
| angle | property |
public var angle:Number发射角度。
| emitType | property |
public var emitType:int发射类型,0为Base,1为BaseShell,2为Volume,3为VolumeShell。
| length | property |
public var length:Number椎体长度。
| radius | property |
public var radius:Number发射器半径。
| ConeShape | () | Constructor |
public function ConeShape()
创建一个 ConeShape 实例。
| _getShapeBoundBox | () | method |
| _getSpeedBoundBox | () | method |
| cloneTo | () | method |
override public function cloneTo(destObject:*):voidParameters
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) |