m4m.framework.Particle1

@meta4d/engine / Exports / m4m / framework / Particle1

Class: Particle1

m4m.framework.Particle1

粒子

author feng3d

Table of contents

Properties

Constructors

Methods

Properties

acceleration

acceleration: vector3

加速度

Defined in

framework/particlesystem/Particle1.ts:34arrow-up-right


angularVelocity

angularVelocity: vector3

角速度

Defined in

framework/particlesystem/Particle1.ts:44arrow-up-right


birthRateAtDuration

birthRateAtDuration: number

出生时在周期的位置(在发射时被更新)

Defined in

framework/particlesystem/Particle1.ts:79arrow-up-right


birthTime

birthTime: number = 0

出生时间

Defined in

framework/particlesystem/Particle1.ts:14arrow-up-right


cache

cache: Object = {}

缓存,用于存储计算时临时数据

Defined in

framework/particlesystem/Particle1.ts:89arrow-up-right


color

color: color

颜色

Defined in

framework/particlesystem/Particle1.ts:59arrow-up-right


flipUV

flipUV: vector2

在粒子上翻转UV坐标,使它们呈现水平镜像。

Defined in

framework/particlesystem/Particle1.ts:74arrow-up-right


lifetime

lifetime: number = 5

寿命

Defined in

framework/particlesystem/Particle1.ts:19arrow-up-right


position

position: vector3

位置

Defined in

framework/particlesystem/Particle1.ts:24arrow-up-right


rateAtLifeTime

rateAtLifeTime: number

此时粒子在生命周期的位置(在更新状态前被更新)

Defined in

framework/particlesystem/Particle1.ts:84arrow-up-right


rotation

rotation: vector3

旋转角度

Defined in

framework/particlesystem/Particle1.ts:39arrow-up-right


size

size: vector3

尺寸

Defined in

framework/particlesystem/Particle1.ts:49arrow-up-right


startColor

startColor: color

起始颜色

Defined in

framework/particlesystem/Particle1.ts:64arrow-up-right


startSize

startSize: vector3

起始尺寸

Defined in

framework/particlesystem/Particle1.ts:54arrow-up-right


tilingOffset

tilingOffset: vector4

纹理UV缩放和偏移。

Defined in

framework/particlesystem/Particle1.ts:69arrow-up-right


velocity

velocity: vector3

速度

Defined in

framework/particlesystem/Particle1.ts:29arrow-up-right

Constructors

constructor

new Particle1()

Methods

updateState

updateState(preTime, time): void

更新状态

Parameters

Name
Type

preTime

number

time

number

Returns

void

Defined in

framework/particlesystem/Particle1.ts:94arrow-up-right

Last updated