Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::Particle::CParentRelativeSystem Class Reference

System used by CSubGroup to synchronize child particles with their parent particles. More...

#include <ParticleSystem/Particles/Systems/CParentRelativeSystem.h>

Inheritance diagram for Skylicht::Particle::CParentRelativeSystem:
Skylicht::Particle::ISystem

Public Member Functions

virtual void update (CParticle *particles, int num, CGroup *group, float dt)
 Implementation: performs relative movement and parameter syncing.
void syncParams (bool life, bool color)
 Configures synchronization parameters.
Public Member Functions inherited from Skylicht::Particle::ISystem
void setEnable (bool b)
 Enables or disables the system.
bool isEnable ()
 Checks if the system is enabled.

Protected Attributes

bool m_syncLife
 If true, child life is synced to parent life.
bool m_syncColor
 If true, child color is synced to parent color.
Protected Attributes inherited from Skylicht::Particle::ISystem
bool m_enable
 Whether the system is active.

Detailed Description

System used by CSubGroup to synchronize child particles with their parent particles.

Applies parent movement and optionally copies age/life/color parameters.

Member Function Documentation

◆ update()

virtual void Skylicht::Particle::CParentRelativeSystem::update ( CParticle * particles,
int num,
CGroup * group,
float dt )
virtual

Implementation: performs relative movement and parameter syncing.

Implements Skylicht::Particle::ISystem.


The documentation for this class was generated from the following file: