Skip to content

粒子系统 forceOverLifeTime velocityOverLifeTime curve 模式 没效果, twoCurves 也看看把 #2796

@luzhuang

Description

@luzhuang

forceOverLifetime: {
enabled: true,
space: "world" as const,
forceX: {
mode: "twoConstants" as const,
// 为每个粒子提供一个随机的水平力,范围在 -0.5 到 0.5 之间
// 这会使粒子的轨迹产生随机的左右偏移,模拟自然的扰动
constantMin: -1,
constantMax: 1
},
forceY: { mode: "constant" as const, constant: 0 }, // 无垂直力场干扰主上升运动
forceZ: { mode: "constant" as const, constant: 0 }
}

twoConstants -1 1 只往右不往做

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions