38 class COMPONENT_API CPolyLine :
public CZone
53 CPolyLine(
const core::array<core::vector3df>& point);
62 void setLine(
const core::array<core::vector3df>& point);
77 inline void setNormal(
const core::vector3df& normal)
88 DECLARE_GETTYPENAME(CPolyLine)
Definition CObjectSerializable.h:36
Represents a group of particles with shared settings, emitters, and a renderer.
Definition CGroup.h:132
Individual particle data structure.
Definition CParticle.h:65
core::array< core::vector3df > & getPoints()
Gets path vertices.
Definition CPolyLine.h:65
u32 getNumPoint()
Gets vertex count.
Definition CPolyLine.h:71
void setLine(const core::array< core::vector3df > &point)
Sets the path points and precalculates segments.
virtual CObjectSerializable * createSerializable()
Creates a serializable object for property editing or saving.
core::vector3df m_normal
Default normal for the zone.
Definition CPolyLine.h:50
virtual core::vector3df computeNormal(const core::vector3df &point, CGroup *group)
Implementation: returns the constant normal.
core::array< float > m_segments
Length of each segment.
Definition CPolyLine.h:44
virtual void loadSerializable(CObjectSerializable *object)
Loads properties from a serializable object.
float m_length
Total path length.
Definition CPolyLine.h:48
core::array< core::vector3df > m_point
List of vertices in the path.
Definition CPolyLine.h:42
void setNormal(const core::vector3df &normal)
Sets constant normal for the polyline.
Definition CPolyLine.h:77
core::array< float > m_ratios
Ratio of each vertex position along the total length.
Definition CPolyLine.h:46
virtual void generatePosition(CParticle &particle, bool full, CGroup *group)
Implementation: spawns at random position along the path.
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29