Class: State

State

new State()

Source:

Members

(static) cache

The cache of state objects for the particle system
Source:

(static) cacheSize

The number of cached objects
Source:

(static) count

The of state objects that exist
Source:

Methods

(static) create()

JHS Cache of state objects Get a new state object, either from the cache or create one
Source:

(static) destroy()

Destroy a state object, and cache it.
Source:

(static) FillCache(deltaTime)

Called once per frame in an attempt to fill the cache with some state objects to avoid hits to our framerate when creating lots of particles
Parameters:
Name Type Description
deltaTime number
Source:

reset()

Reset this state object as though it had just been newed
Source: