This wiki is archived from 2021-09-05

Particle System Reference

From Planetary Annihilation: TITANS and Classic PA Wiki
Revision as of 09:58, 14 February 2016 by Dom (talk | contribs)
Jump to navigation Jump to search


File:Titans-icon.png Planetary Annihilation Titans & Classic Particle Effect System Reference

Work in progress, go here.

Glossary

// Particle System
{
    "emitters": [{
        "spec" : {<particle properties>},
        <emitter properties>
    }],
    "color": <global color multiplier>
}

Particle System

The group of particle emitters.

Field Name Field Type (default value) - Description
emitters array ( [] )
The list of emitter objects in the system.
color color ( [1.0, 1.0, 1.0, 1.0] )
A system wide color multiplier. Value is RGBA linear float color values in a JSON array.

Emitter System

Defines the position and movement behavior of particles.

Field Name Field Type (default value) - Description
spec object ( )
The particle spec definition.
type string ( "POSITION" )
Defines the shape of the particle spawn positions, and how the offsetRange* keys are interpreted.
"POSITION", "SPHEROID", "SHELL", "EMITTER", "CYLINDER_X", "CYLINDER_Y", "CYLINDER_Z"
linkIndex number ( -1.0 )
Used when the type is set to "EMITTER" to define the emitter to attach to.
offsetX
offsetY
offsetZ
emitter time curve ( 0.0 )
Define the starting spawn position for the particles in emitter space. The shape of the emitter space depends on the type field.
offseRangetX
offseRangetY
offseRangetZ
emitter time curve ( 0.0 )
Define the starting spawn position range in which a particle can randomly deviate from offsetX, offsetY, and offsetZ.