Static Method Summary
| Static Public Methods | ||
| public static | 
      
       Returns a new instance of the behaviour from the JSON object passed.  | 
    |
Constructor Summary
| Public Constructor | ||
| public | 
      
       Constructs a Scale behaviour instance.  | 
    |
Member Summary
| Public Members | ||
| public get | 
      
       Gets the _same property which determines if the scale props are the same.  | 
    |
| public set | 
      
       Sets the _same property which determines if the scale props are the same.  | 
    |
| public | 
      
       The starting scale.  | 
    |
| public | 
      
       The ending scale.  | 
    |
| Private Members | ||
| private | 
      
       | 
    |
Method Summary
| Public Methods | ||
| public | 
       initialize(particle: object): * Initializes the behaviour on a particle.  | 
    |
| public | 
      
       Applies the behaviour to the particle.  | 
    |
| public | 
      
       Resets the behaviour properties.  | 
    |
Inherited Summary
| From class Behaviour | ||
| public get | 
      
       Gets the behaviour's life.  | 
    |
| public set | 
       life: * Ensures that life is infinity if an invalid value is supplied.  | 
    |
| public | 
      
       The age of the behaviour  | 
    |
| public | 
      
       Determines if the behaviour is dead or not  | 
    |
| public | 
      
       The behaviour's decaying trend  | 
    |
| public | 
      
       The energy of the behaviour  | 
    |
| public | 
      
       The behaviour's id  | 
    |
| public | 
      
       Determines if the behaviour will be applied or not  | 
    |
| public | 
      
       The class type.  | 
    |
| private | 
       _life: *  | 
    |
| public abstract | 
       applyBehaviour(target: Particle | Emitter, time: Number, index: integer): * Apply behaviour to the target as a factor of time.  | 
    |
| public abstract | 
       destroy() Destory this behaviour.  | 
    |
| public | 
      
       Compares the age of the behaviour vs integration time and determines if the behaviour should be set to dead or not.  | 
    |
| public abstract | 
      
       Returns a new instance of the behaviour from the JSON object passed.  | 
    |
| public abstract | 
       initialize(particle: Particle) Set the behaviour's initial properties on the particle.  | 
    |
| public abstract | 
      
       Change the target's properties according to specific behaviour logic.  | 
    |
| public | 
       normalizeForce(force: Vector3D): Vector3D Normalize a force by 1:100;  | 
    |
| public | 
       normalizeValue(value: number): number Normalize a value by 1:100;  | 
    |
| public | 
      
       Reset this behaviour's parameters  | 
    |
Static Public Methods
Public Constructors
public constructor(scaleA: number, scaleB: number, life: number, easing: function, isEnabled: boolean): * source
Constructs a Scale behaviour instance.
Override:
Behaviour#constructorParams:
| Name | Type | Attribute | Description | 
| scaleA | number | the starting scale value  | 
    |
| scaleB | number | 
  | 
      the ending scale value  | 
    
| life | number | the life of the behaviour  | 
    |
| easing | function | the easing equation to use for transforms  | 
    |
| isEnabled | boolean | 
  | 
      Determines if the behaviour will be applied or not  | 
    
Return:
| * | void  | 
        
Public Members
public get same: boolean: * source
Gets the _same property which determines if the scale props are the same.
public set same(same: boolean): boolean source
Sets the _same property which determines if the scale props are the same.
Private Members
Public Methods
public initialize(particle: object): * source
Initializes the behaviour on a particle. Stores initial values for comparison and mutation in the applyBehaviour method.
Override:
Behaviour#initializeParams:
| Name | Type | Attribute | Description | 
| particle | object | the particle to initialize the behaviour on  | 
    
Return:
| * | void  | 
        
public mutate(particle: object, time: number, index: integer): * source
Applies the behaviour to the particle. Mutates the particle's scale and its radius according to this scale.
Override:
Behaviour#mutateReturn:
| * | void  | 
        
    
  