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

Base class for zones defined by a single world position. More...

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

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

Public Member Functions

 CPositionZone (EZone type)
void setPosition (const core::vector3df &pos)
 Sets relative position.
const core::vector3df & getPosition ()
 Gets relative position.
Public Member Functions inherited from Skylicht::Particle::CZone
 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

core::vector3df m_position
 Relative position of the zone.
Protected Attributes inherited from Skylicht::Particle::CZone
EZone m_type
 Type of the zone.

Detailed Description

Base class for zones defined by a single world position.


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