Packagecom.roguedevelopment.pulse.rule
Classpublic final class BoundingBoxRule
ImplementsIPulseRule

The bounding box rule constrains particles to a rectangular area. If they stray outside the rectangle, they'll be rotated. This simulates a bounce effect when they hit the "walls".



Protected Properties
 PropertyDefined by
  box : Rectangle
BoundingBoxRule
Public Methods
 MethodDefined by
  
BoundingBoxRule(box:Rectangle = null)
BoundingBoxRule
  
applyRule(pulse:IParticle, currentMs:Number, lastMs:Number):void
BoundingBoxRule
  
configure(params:Array):void
This is used to auto-configure this rule when used through the SimpleParticles interface.
BoundingBoxRule
Property detail
boxproperty
protected var box:Rectangle
Constructor detail
BoundingBoxRule()constructor
public function BoundingBoxRule(box:Rectangle = null)Parameters
box:Rectangle (default = null)
Method detail
applyRule()method
public function applyRule(pulse:IParticle, currentMs:Number, lastMs:Number):voidParameters
pulse:IParticle
 
currentMs:Number
 
lastMs:Number
configure()method 
public function configure(params:Array):void

This is used to auto-configure this rule when used through the SimpleParticles interface.

Parameters
params:Array