mirror of
https://github.com/galacean/engine.git
synced 2026-06-02 00:31:57 +08:00
20 lines
1.3 KiB
Plaintext
20 lines
1.3 KiB
Plaintext
---
|
|
title: Lifecycle Force Module
|
|
---
|
|
|
|
### Lifecycle Force Module
|
|
|
|
ForceOverLifetime inherits from `ParticleGeneratorModule` and is used to apply acceleration effects to particles, typically for simulating 3D force fields such as wind.
|
|
|
|
<Image src="https://mdn.alipayobjects.com/huamei_aftkdx/afts/img/A*UsPoQp-ZJGwAAAAAQLAAAAgAeteEAQ/fmt.webp" alt="ForceOverLifetime" />
|
|
|
|
## Properties
|
|
|
|
| Property | Description |
|
|
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- |
|
|
| [space](/apis/core/#ParticleSimulationSpace) | Select the space for force changes, which can be world space or local space |
|
|
| forceX | [ParticleCompositeCurve](/apis/core/#ParticleCompositeCurve) object representing the x-axis force of particles over their lifetime |
|
|
| forceY | [ParticleCompositeCurve](/apis/core/#ParticleCompositeCurve) object representing the y-axis force of particles over their lifetime |
|
|
| forceZ | [ParticleCompositeCurve](/apis/core/#ParticleCompositeCurve) object representing the z-axis force of particles over their lifetime |
|
|
|