m4m.framework.Particle1
@meta4d/engine / Exports / m4m / framework / Particle1
Class: Particle1
粒子
author
feng3d
Table of contents
Properties
Constructors
Methods
Properties
acceleration
• acceleration: vector3
加速度
Defined in
framework/particlesystem/Particle1.ts:34
angularVelocity
• angularVelocity: vector3
角速度
Defined in
framework/particlesystem/Particle1.ts:44
birthRateAtDuration
• birthRateAtDuration: number
出生时在周期的位置(在发射时被更新)
Defined in
framework/particlesystem/Particle1.ts:79
birthTime
• birthTime: number
= 0
出生时间
Defined in
framework/particlesystem/Particle1.ts:14
cache
• cache: Object
= {}
缓存,用于存储计算时临时数据
Defined in
framework/particlesystem/Particle1.ts:89
color
• color: color
颜色
Defined in
framework/particlesystem/Particle1.ts:59
flipUV
• flipUV: vector2
在粒子上翻转UV坐标,使它们呈现水平镜像。
Defined in
framework/particlesystem/Particle1.ts:74
lifetime
• lifetime: number
= 5
寿命
Defined in
framework/particlesystem/Particle1.ts:19
position
• position: vector3
位置
Defined in
framework/particlesystem/Particle1.ts:24
rateAtLifeTime
• rateAtLifeTime: number
此时粒子在生命周期的位置(在更新状态前被更新)
Defined in
framework/particlesystem/Particle1.ts:84
rotation
• rotation: vector3
旋转角度
Defined in
framework/particlesystem/Particle1.ts:39
size
• size: vector3
尺寸
Defined in
framework/particlesystem/Particle1.ts:49
startColor
• startColor: color
起始颜色
Defined in
framework/particlesystem/Particle1.ts:64
startSize
• startSize: vector3
起始尺寸
Defined in
framework/particlesystem/Particle1.ts:54
tilingOffset
• tilingOffset: vector4
纹理UV缩放和偏移。
Defined in
framework/particlesystem/Particle1.ts:69
velocity
• velocity: vector3
速度
Defined in
framework/particlesystem/Particle1.ts:29
Constructors
constructor
• new Particle1()
Methods
updateState
▸ updateState(preTime
, time
): void
更新状态
Parameters
preTime
number
time
number
Returns
void
Defined in
Last updated