![]() |
Skylicht Engine
|
A zone that spawns particles along a line segment. More...
#include <ParticleSystem/Particles/Zones/CLine.h>
Public Member Functions | |
| CLine (const core::vector3df &p1, const core::vector3df &p2) | |
| virtual CObjectSerializable * | createSerializable () |
| Creates a serializable object for property editing or saving. | |
| virtual void | loadSerializable (CObjectSerializable *object) |
| Loads properties from a serializable object. | |
| void | setLine (const core::vector3df &p1, const core::vector3df &p2) |
| Updates the line segment coordinates. | |
| void | setLine (const core::line3df &line) |
| Updates the line segment using an Irrlicht line. | |
| core::line3df | getLine () |
| Gets the segment as an Irrlicht line. | |
| virtual void | generatePosition (CParticle &particle, bool full, CGroup *group) |
| Implementation: spawns at a random point along the segment. | |
| virtual core::vector3df | computeNormal (const core::vector3df &point, CGroup *group) |
| Implementation: computes normal relative to the nearest point on segment. | |
| Public Member Functions inherited from Skylicht::Particle::CZone | |
| CZone (EZone type) | |
| 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. | |
Protected Attributes | |
| core::vector3df | m_p1 |
| Starting point of the segment. | |
| core::vector3df | m_p2 |
| Ending point of the segment. | |
| Protected Attributes inherited from Skylicht::Particle::CZone | |
| EZone | m_type |
| Type of the zone. | |
A zone that spawns particles along a line segment.
|
virtual |
Implementation: computes normal relative to the nearest point on segment.
Implements Skylicht::Particle::CZone.
|
virtual |
Creates a serializable object for property editing or saving.
Reimplemented from Skylicht::Particle::CZone.
|
virtual |
Implementation: spawns at a random point along the segment.
Implements Skylicht::Particle::CZone.
|
virtual |
Loads properties from a serializable object.
| object | The serializable data to load. |
Reimplemented from Skylicht::Particle::CZone.