46 class COMPONENT_API CVortexSystem :
public ISystem
65 CVortexSystem(
const core::vector3df& position,
const core::vector3df& direction,
float rotationSpeed = 1.0f,
float attractionSpeed = 0.0f);
67 virtual ~CVortexSystem();
Represents a group of particles with shared settings, emitters, and a renderer.
Definition CGroup.h:132
Individual particle data structure.
Definition CParticle.h:65
void enableKillingParticle(bool b)
Enables/disables killing particles at the core.
Definition CVortexSystem.h:151
void setRotateSpeed(float f)
Sets rotation speed.
Definition CVortexSystem.h:115
float m_attractionSpeed
Speed at which particles are pulled toward the axis.
Definition CVortexSystem.h:56
float m_eyeRadius
Radius of the vortex core.
Definition CVortexSystem.h:60
float getAttractionSpeed()
Gets radial attraction speed.
Definition CVortexSystem.h:103
void setAttractionSpeed(float f)
Sets radial attraction speed.
Definition CVortexSystem.h:121
core::vector3df m_position
Center of the vortex.
Definition CVortexSystem.h:50
virtual void update(CParticle *particles, int num, CGroup *group, float dt)
Implementation: applies vortex forces to particles.
float getEyeRadius()
Gets core radius.
Definition CVortexSystem.h:109
bool m_killingParticleEnabled
Whether to kill particles that reach the core.
Definition CVortexSystem.h:62
float m_rotationSpeed
Speed of rotation around the axis.
Definition CVortexSystem.h:54
void setEyeRadius(float f)
Sets core radius.
Definition CVortexSystem.h:127
float getRotateSpeed()
Gets rotation speed.
Definition CVortexSystem.h:97
void setDirection(const core::vector3df &d)
Sets rotation axis.
Definition CVortexSystem.h:91
core::vector3df m_direction
Axis of rotation.
Definition CVortexSystem.h:52
float m_eyeAttractionSpeed
Speed at which particles move along the axis.
Definition CVortexSystem.h:58
core::vector3df getDirection()
Gets rotation axis.
Definition CVortexSystem.h:79
bool isKillingParticle()
Checks if killing at core is enabled.
Definition CVortexSystem.h:145
void setPosition(const core::vector3df &p)
Sets center position.
Definition CVortexSystem.h:85
void setEyeAttractionSpeed(float f)
Sets axial attraction speed.
Definition CVortexSystem.h:133
core::vector3df getPosition()
Gets center position.
Definition CVortexSystem.h:73
float getEyeAttractionSpeed()
Gets axial attraction speed.
Definition CVortexSystem.h:139
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29