Class ParticleEmitter
Implements a particle emitter
Inheritance
Inherited Members
Namespace: Fusee.Engine.Core
Assembly: Fusee.Engine.Core.dll
Syntax
public class ParticleEmitter
Constructors
ParticleEmitter(Int32, Int32, Int32, Single, Single, Single, Single, Single, Single, Single, Double, Double, Double, Single, Single, Single)
Initializes a new instance of the ParticleEmittter class.
Declaration
public ParticleEmitter(int myCount, int myLifeMin, int myLifeMax, float myMinSize, float myMaxSize, float myRotation, float myTransparency, float myRandPosX, float myRandPosY, float myRandPosZ, double myRandVelX, double myRandVelY, double myRandVelZ, float myGravityX, float myGravityY, float myGravityZ)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | myCount | |
System.Int32 | myLifeMin | |
System.Int32 | myLifeMax | |
System.Single | myMinSize | |
System.Single | myMaxSize | |
System.Single | myRotation | |
System.Single | myTransparency | |
System.Single | myRandPosX | |
System.Single | myRandPosY | |
System.Single | myRandPosZ | |
System.Double | myRandVelX | |
System.Double | myRandVelY | |
System.Double | myRandVelZ | |
System.Single | myGravityX | |
System.Single | myGravityY | |
System.Single | myGravityZ |
Fields
ParticleMesh
The entire particle system consists of one mesh.
Declaration
public Mesh ParticleMesh
Field Value
Type | Description |
---|---|
Mesh |
PsSimpleTexture
The pixel shader.
Declaration
public string PsSimpleTexture
Field Value
Type | Description |
---|---|
System.String |
VsSimpleTexture
The vertex shader.
Declaration
public string VsSimpleTexture
Field Value
Type | Description |
---|---|
System.String |
Properties
GravityX
Gets and sets the gravity towards the x-axis.
Declaration
public float GravityX { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
GravityY
Gets and sets the gravity towards the y-axis.
Declaration
public float GravityY { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
GravityZ
Gets and sets the gravity towards the z-axis.
Declaration
public float GravityZ { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
LifeMax
Gets and sets the maximum life of the particles.
Declaration
public int LifeMax { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LifeMin
Gets and sets the minimum life of the particles.
Declaration
public int LifeMin { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxSize
Gets and sets the maximum size of the particles.
Declaration
public float MaxSize { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MinSize
Gets and sets the minimum size of the particles.
Declaration
public float MinSize { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
PMesh
Returns the particle mesh.
Declaration
public Mesh PMesh { get; }
Property Value
Type | Description |
---|---|
Mesh |
RandPosX
Gets and sets the random position on the x-axis.
Declaration
public double RandPosX { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RandPosY
Gets and sets the random position on the y-axis.
Declaration
public double RandPosY { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RandPosZ
Gets and sets the random position on the z-axis.
Declaration
public double RandPosZ { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RandVelX
Gets and sets the random velocity towards the x-axis.
Declaration
public double RandVelX { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RandVelY
Gets and sets the random velocity towards the y-axis.
Declaration
public double RandVelY { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
RandVelZ
Gets and sets the random velocity towards the z-axis.
Declaration
public double RandVelZ { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Transparency
Gets and sets the transparency of particles.
Declaration
public float Transparency { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Tick(Double)
This method fills the particleList with data, creates the particle mesh and manipulates the information of particleList.
Declaration
public void Tick(double deltaTime)
Parameters
Type | Name | Description |
---|---|---|
System.Double | deltaTime |