m4m.framework.ParticleInheritVelocityModule

@meta4d/engine / Exports / m4m / framework / ParticleInheritVelocityModule

Class: ParticleInheritVelocityModule

m4m.framework.ParticleInheritVelocityModule

The Inherit Velocity Module controls how the velocity of the emitter is transferred to the particles as they are emitted.

遗传速度模块控制发射体的速度在粒子发射时如何传递到粒子上。(只有粒子系统在世界空间中模拟时生效)

Hierarchy

Table of contents

Properties

Constructors

Accessors

Methods

Properties

__class__

__class__: "m4m.framework.ParticleInheritVelocityModule"

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:10


enabled

enabled: boolean = false

是否开启

Inherited from

ParticleModule.enabled

Defined in

framework/particlesystem/modules/ParticleModule.ts:14


mode

mode: ParticleSystemInheritVelocityMode = ParticleSystemInheritVelocityMode.Initial

How to apply emitter velocity to particles.

如何将发射体速度应用于粒子。

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:17


multiplier

multiplier: MinMaxCurve

Curve to define how much emitter velocity is applied during the lifetime of a particle.

曲线,用来定义在粒子的生命周期内应用了多少发射速度。

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:24


particleSystem

particleSystem: ParticleSystem

粒子系统

Inherited from

ParticleModule.particleSystem

Defined in

framework/particlesystem/modules/ParticleModule.ts:19

Constructors

constructor

new ParticleInheritVelocityModule()

Inherited from

ParticleModule.constructor

Accessors

curve

get curve(): MinMaxCurve

Curve to define how much emitter velocity is applied during the lifetime of a particle.

曲线,用来定义在粒子的生命周期内应用了多少发射速度。

Returns

MinMaxCurve

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:31

set curve(v): void

Curve to define how much emitter velocity is applied during the lifetime of a particle.

曲线,用来定义在粒子的生命周期内应用了多少发射速度。

Parameters

Name
Type

Returns

void

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:36


curveMultiplier

get curveMultiplier(): number

Change the curve multiplier.

改变曲线的乘数。

Returns

number

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:46

set curveMultiplier(v): void

Change the curve multiplier.

改变曲线的乘数。

Parameters

Name
Type

v

number

Returns

void

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:51

Methods

initParticleState

initParticleState(particle): void

初始化粒子状态

Parameters

Name
Type
Description

particle

粒子

Returns

void

Overrides

ParticleModule.initParticleState

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:60


updateParticleState

updateParticleState(particle): void

更新粒子状态

Parameters

Name
Type
Description

particle

粒子

Returns

void

Overrides

ParticleModule.updateParticleState

Defined in

framework/particlesystem/modules/ParticleInheritVelocityModule.ts:78

Last updated