NWengine 0.9
Loading...
Searching...
No Matches
ParticleProperties Struct Reference

Structure that holds the properties of a particle. More...

#include <ParticleSystem.h>

Public Attributes

fVec2 absoluteStartPosition = fVec2(0.0f, 0.0f)
 
float lifetime = 1.0f
 
int lifedistance = 1000
 
fVec2 sPosition = fVec2(0.0f, 0.0f)
 
BezierInterpolator directionX = BezierInterpolator(0.0f, 0.0f, 0.0f)
 
BezierInterpolator directionY = BezierInterpolator(1.0f, 1.0f, 0.0f)
 
BezierInterpolator scaleX = BezierInterpolator(1.0f, 1.0f, 0.0f)
 
BezierInterpolator scaleY = BezierInterpolator(1.0f, 1.0f, 0.0f)
 
BezierInterpolator colorX = BezierInterpolator(1.0f, 1.0f, 0.0f)
 
BezierInterpolator colorY = BezierInterpolator(1.0f, 1.0f, 0.0f)
 
BezierInterpolator colorZ = BezierInterpolator(1.0f, 1.0f, 0.0f)
 
BezierInterpolator colorA = BezierInterpolator(1.0f, 1.0f, 0.0f)
 
BezierInterpolator speed = BezierInterpolator(100.0f, 0.0f, 0.0f)
 

Detailed Description

Structure that holds the properties of a particle.

Member Data Documentation

◆ absoluteStartPosition

fVec2 ParticleProperties::absoluteStartPosition = fVec2(0.0f, 0.0f)

Read only; buffer of position used to pass beginning absolute position to particle

◆ colorA

BezierInterpolator ParticleProperties::colorA = BezierInterpolator(1.0f, 1.0f, 0.0f)

The alpha color of the particle

◆ colorX

BezierInterpolator ParticleProperties::colorX = BezierInterpolator(1.0f, 1.0f, 0.0f)

The X color of the particle

◆ colorY

BezierInterpolator ParticleProperties::colorY = BezierInterpolator(1.0f, 1.0f, 0.0f)

The Y color of the particle

◆ colorZ

BezierInterpolator ParticleProperties::colorZ = BezierInterpolator(1.0f, 1.0f, 0.0f)

The Z color of the particle

◆ directionX

BezierInterpolator ParticleProperties::directionX = BezierInterpolator(0.0f, 0.0f, 0.0f)

The X direction of the particle

◆ directionY

BezierInterpolator ParticleProperties::directionY = BezierInterpolator(1.0f, 1.0f, 0.0f)

The Y direction of the particle

◆ lifedistance

int ParticleProperties::lifedistance = 1000

The distance the particle can travel in pixels

◆ lifetime

float ParticleProperties::lifetime = 1.0f

The lifetime of the particle

◆ scaleX

BezierInterpolator ParticleProperties::scaleX = BezierInterpolator(1.0f, 1.0f, 0.0f)

The X scale of the particle

◆ scaleY

BezierInterpolator ParticleProperties::scaleY = BezierInterpolator(1.0f, 1.0f, 0.0f)

The Y scale of the particle

◆ speed

BezierInterpolator ParticleProperties::speed = BezierInterpolator(100.0f, 0.0f, 0.0f)

The speed of the particle

◆ sPosition

fVec2 ParticleProperties::sPosition = fVec2(0.0f, 0.0f)

The starting position of the particle relative to the particle system position


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