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