| Package | laya.d3.core.particleShuriKen.module.shape |
| Class | public class BaseShape |
| Inheritance | BaseShape Object |
| Implements | laya.d3.core.IClone |
| Subclasses | BoxShape, CircleShape, ConeShape, HemisphereShape, SphereShape |
BaseShape 类用于粒子形状。
| Property | Defined By | ||
|---|---|---|---|
| enable : Boolean 是否启用。 | BaseShape | ||
| randomDirection : Boolean 随机方向。 | BaseShape | ||
| Method | Defined By | ||
|---|---|---|---|
创建一个 BaseShape 实例。
| BaseShape | ||
clone():*
克隆。
| BaseShape | ||
cloneTo(destObject:*):void
克隆。
| BaseShape | ||
generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void
用于生成粒子初始位置和方向。
| BaseShape | ||
| enable | property |
public var enable:Boolean是否启用。
| randomDirection | property |
public var randomDirection:Boolean随机方向。
| BaseShape | () | Constructor |
public function BaseShape()
创建一个 BaseShape 实例。
| clone | () | method |
public function clone():*克隆。
Returns* — 克隆副本。
|
| cloneTo | () | method |
public function cloneTo(destObject:*):void克隆。
Parameters
destObject:* — 克隆源。
|
| generatePositionAndDirection | () | method |
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) |