m4m.framework.ParticleSystemShapeBox

@meta4d/engine / Exports / m4m / framework / ParticleSystemShapeBox

Class: ParticleSystemShapeBox

m4m.framework.ParticleSystemShapeBox

粒子系统 发射盒子

author feng3d

Hierarchy

Table of contents

Properties

Accessors

Methods

Constructors

Properties

_module

Protected _module: ParticleShapeModule

Inherited from

ParticleSystemShapeBase._module

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBase.ts:10


emitFrom

emitFrom: ParticleSystemShapeBoxEmitFrom = ParticleSystemShapeBoxEmitFrom.Volume

粒子系统盒子发射类型。

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:73

Accessors

boxX

get boxX(): number

盒子X方向缩放。

Returns

number

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:34

set boxX(v): void

盒子X方向缩放。

Parameters

Name
Type

v

number

Returns

void

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:39


boxY

get boxY(): number

盒子Y方向缩放。

Returns

number

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:47

set boxY(v): void

盒子Y方向缩放。

Parameters

Name
Type

v

number

Returns

void

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:52


boxZ

get boxZ(): number

盒子Z方向缩放。

Returns

number

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:60

set boxZ(v): void

盒子Z方向缩放。

Parameters

Name
Type

v

number

Returns

void

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:65

Methods

calcParticlePosDir

calcParticlePosDir(particle, position, dir): void

计算粒子的发射位置与方向

Parameters

Name
Type

particle

position

vector3

dir

vector3

Returns

void

Overrides

ParticleSystemShapeBase.calcParticlePosDir

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBox.ts:82

Constructors

constructor

new ParticleSystemShapeBox(module)

Parameters

Name
Type

module

Inherited from

ParticleSystemShapeBase.constructor

Defined in

framework/particlesystem/shapes/ParticleSystemShapeBase.ts:12

Last updated