Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
ParticleForceField.hpp File Reference

A scene-placed force zone that pushes every world-space particle near it. More...

Include dependency graph for ParticleForceField.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esengine::ecs::ParticleForceField

Namespaces

namespace  esengine
namespace  esengine::ecs

Enumerations

enum class  esengine::ecs::ForceFieldType : i32 { esengine::ecs::Directional = 0 , esengine::ecs::Point = 1 , esengine::ecs::Vortex = 2 , esengine::ecs::Drag = 3 }

Detailed Description

A scene-placed force zone that pushes every world-space particle near it.

Where the emitter's Noise module is a per-emitter turbulence, a force field is an external influence: drop one in the scene (wind gust, black hole, whirlpool, drag pocket) and it acts on the particles of every emitter within range. Pure CPU — the ParticleSystem gathers the active fields each frame and folds them into the same velocity integration as gravity, so there is no new subsystem and nothing platform-specific.

Definition in file ParticleForceField.hpp.