Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::Particle::CZone Class Referenceabstract

Base class for zones where particles can be spawned. More...

#include <ParticleSystem/Particles/Zones/CZone.h>

Inheritance diagram for Skylicht::Particle::CZone:
Skylicht::Particle::CParticleSerializable Skylicht::Particle::CLine Skylicht::Particle::CPolyLine Skylicht::Particle::CPositionZone Skylicht::Particle::CAABox Skylicht::Particle::CCylinder Skylicht::Particle::CPoint Skylicht::Particle::CRing Skylicht::Particle::CSphere

Public Member Functions

 CZone (EZone type)
virtual CObjectSerializablecreateSerializable ()
 Creates a serializable object for property editing or saving.
virtual void loadSerializable (CObjectSerializable *object)
 Loads properties from a serializable object.
const wchar_t * getName ()
 Gets display name.
EZone getType ()
 Gets zone type.
void normalizeOrRandomize (core::vector3df &v)
 Normalizes a vector or randomizes it if it is zero.
virtual void generatePosition (CParticle &particle, bool full, CGroup *group)=0
 Generates a random position within or on the surface of the zone.
virtual core::vector3df computeNormal (const core::vector3df &point, CGroup *group)=0
 Computes the surface normal at a specific point on the zone.

Protected Attributes

EZone m_type
 Type of the zone.

Detailed Description

Base class for zones where particles can be spawned.

Zones define the spatial boundaries (volume, surface, or line) for particle birth.

Member Function Documentation

◆ computeNormal()

virtual core::vector3df Skylicht::Particle::CZone::computeNormal ( const core::vector3df & point,
CGroup * group )
pure virtual

◆ createSerializable()

virtual CObjectSerializable * Skylicht::Particle::CZone::createSerializable ( )
virtual

◆ generatePosition()

virtual void Skylicht::Particle::CZone::generatePosition ( CParticle & particle,
bool full,
CGroup * group )
pure virtual

◆ loadSerializable()

virtual void Skylicht::Particle::CZone::loadSerializable ( CObjectSerializable * object)
virtual

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