/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/ParticlePlugin/Events/ParticleEvent.h
23 строки
977 B
Jan Krassnigg
Various small improvements (particles, curves) (#1739)
11 дек 2025, 09:27
Не верифицирован
11 дек 2025, 09:27
1f50f82
Код
Авторство
О чём код?
#pragma once #include <Foundation/Math/Vec3.h> #include <Foundation/Strings/HashedString.h> #include <Foundation/Types/ArrayPtr.h> #include <ParticlePlugin/ParticlePluginDLL.h> /// Represents an event triggered by a particle system. /// /// Particle events are raised during a particle's lifetime (e.g., on death, collision) /// and can trigger reactions like spawning effects or prefabs. struct EZ_PARTICLEPLUGIN_DLL ezParticleEvent { EZ_DECLARE_POD_TYPE(); ezTempHashedString m_EventType; ///< The type identifier for this event (e.g., "death", "collision") ezVec3 m_vPosition; ///< World-space position where the event occurred ezVec3 m_vDirection; ///< Direction vector associated with the event (e.g., movement direction) ezVec3 m_vNormal; ///< Surface normal at the event location (relevant for collision events) }; /// Queue of particle events to be processed. using ezParticleEventQueue = ezArrayPtr<ezParticleEvent>;