![]() |
Skylicht Engine
|
Base class for zones where particles can be spawned. More...
#include <ParticleSystem/Particles/Zones/CZone.h>
Public Member Functions | |
| CZone (EZone type) | |
| virtual CObjectSerializable * | createSerializable () |
| 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. | |
Base class for zones where particles can be spawned.
Zones define the spatial boundaries (volume, surface, or line) for particle birth.
|
pure virtual |
Computes the surface normal at a specific point on the zone.
Implemented in Skylicht::Particle::CAABox, Skylicht::Particle::CCylinder, Skylicht::Particle::CLine, Skylicht::Particle::CPoint, Skylicht::Particle::CPolyLine, Skylicht::Particle::CRing, and Skylicht::Particle::CSphere.
|
virtual |
Creates a serializable object for property editing or saving.
Reimplemented from Skylicht::Particle::CParticleSerializable.
Reimplemented in Skylicht::Particle::CAABox, Skylicht::Particle::CCylinder, Skylicht::Particle::CLine, Skylicht::Particle::CPoint, Skylicht::Particle::CPolyLine, Skylicht::Particle::CRing, and Skylicht::Particle::CSphere.
|
pure virtual |
Generates a random position within or on the surface of the zone.
Implemented in Skylicht::Particle::CAABox, Skylicht::Particle::CCylinder, Skylicht::Particle::CLine, Skylicht::Particle::CPoint, Skylicht::Particle::CPolyLine, Skylicht::Particle::CRing, and Skylicht::Particle::CSphere.
|
virtual |
Loads properties from a serializable object.
| object | The serializable data to load. |
Reimplemented from Skylicht::Particle::CParticleSerializable.
Reimplemented in Skylicht::Particle::CAABox, Skylicht::Particle::CCylinder, Skylicht::Particle::CLine, Skylicht::Particle::CPoint, Skylicht::Particle::CPolyLine, Skylicht::Particle::CRing, and Skylicht::Particle::CSphere.