Create a new instance of a particle system.
The template shape for each particle
Bounding box in this transform's local coordinate space
Bounding circle in this transform's local coordinate space
Protected
_positionVector2 representing the position
Protected
_rotationRotation of the transform in radians
Protected
_scaleVector2 representing the scale
Protected
_shearBounding box in the world coordinate space
Bounding box in the world coordinate space
Readonly
baseThe template shape used to render each particle.
Bounding box in vertex coordinate space
Bounding circle in vertex coordinate space
Array of children for this transform
Private
colorPrivate
Readonly
glInteger representing the layer of this transform
Private
layerProtected
localProtected
localProtected
localMatrix3 representing the transformation matrix in local space
Matrix3 representing the transformation matrix in world space
Private
modelReadonly
numThe number of particles to render.
Parent transform for this transform
Private
particlePrivate
particleArray containing positions for each particle instance.
Private
particlePrivate
particleArray containing sizes for each particle instance.
Private
texPrivate
texturePrivate
usePrivate
vertPrivate
vertBoolean indicating whether this transform should be rendered
Protected
worldStatic
shaderChecks if this Node2 intersects another Node2, using either a BoundingCircle or AxisAlignedBoundingBox
A boolean indicating whether the two objects intersect
The Node2 to check for intersection with
The IntersectionMode2 to use for the comparison (default: BOUNDING_CIRCLE)
The CoordinateSpace2 to use for the comparison (default: LOCAL_SPACE)
Looks at a target vector with the given look vector
The vector to look at
The vector used to determine the look direction (defaults to Vector2.UP)
Update the particle positions and/or sizes
Whether to update the particle positions (defaults to true)
Whether to update the particle sizes (defaults to false)
Generated using TypeDoc
Represents a 2D particle system