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 var box:Rectangle
public function BoundingBoxRule(box:Rectangle = null)Parameters
| box:Rectangle (default = null) |
public function applyRule(pulse:IParticle, currentMs:Number, lastMs:Number):voidParameters
| pulse:IParticle |
| |
| currentMs:Number |
| |
| lastMs:Number |
public function configure(params:Array):void
This is used to auto-configure this rule when used through the SimpleParticles interface.
Parameters