Packagelaya.d3.core.particleShuriKen.module.shape
Classpublic class SphereShape
InheritanceSphereShape Inheritance BaseShape Inheritance Object

SphereShape 类用于创建球形粒子形状。



Public Properties
 PropertyDefined By
  emitFromShell : Boolean
从外壳发射。
SphereShape
 Inheritedenable : Boolean
是否启用。
BaseShape
  radius : Number
发射器半径。
SphereShape
 InheritedrandomDirection : Boolean
随机方向。
BaseShape
Public Methods
 MethodDefined By
  
创建一个 SphereShape 实例。
SphereShape
 Inherited
clone():*
克隆。
BaseShape
  
cloneTo(destObject:*):void
[override]
SphereShape
  
generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void
[override] 用于生成粒子初始位置和方向。
SphereShape
Protected Methods
 MethodDefined By
  
[override]
SphereShape
  
[override]
SphereShape
Property Detail
emitFromShellproperty
public var emitFromShell:Boolean

从外壳发射。

radiusproperty 
public var radius:Number

发射器半径。

Constructor Detail
SphereShape()Constructor
public function SphereShape()

创建一个 SphereShape 实例。

Method Detail
_getShapeBoundBox()method
override protected function _getShapeBoundBox(boundBox:BoundBox):void

Parameters

boundBox:BoundBox

_getSpeedBoundBox()method 
override protected function _getSpeedBoundBox(boundBox:BoundBox):void

Parameters

boundBox:BoundBox

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)