Package | laya.d3.core.particleShuriKen.module.shape |
Class | public class HemisphereShape |
Inheritance | HemisphereShape BaseShape Object |
HemisphereShape
类用于创建半球形粒子形状。
Property | Defined By | ||
---|---|---|---|
emitFromShell : Boolean 从外壳发射。 | HemisphereShape | ||
enable : Boolean 是否启用。 | BaseShape | ||
radius : Number 发射器半径。 | HemisphereShape | ||
randomDirection : Boolean 随机方向。 | BaseShape |
Method | Defined By | ||
---|---|---|---|
创建一个 HemisphereShape 实例。
| HemisphereShape | ||
clone():*
克隆。
| BaseShape | ||
cloneTo(destObject:*):void [override] | HemisphereShape | ||
generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void [override]
用于生成粒子初始位置和方向。
| HemisphereShape |
Method | Defined By | ||
---|---|---|---|
_getShapeBoundBox(boundBox:BoundBox):void [override]
| HemisphereShape | ||
_getSpeedBoundBox(boundBox:BoundBox):void [override]
| HemisphereShape |
emitFromShell | property |
public var emitFromShell:Boolean
从外壳发射。
radius | property |
public var radius:Number
发射器半径。
HemisphereShape | () | Constructor |
public function HemisphereShape()
创建一个 HemisphereShape
实例。
_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 )
|