Packagecom.fileitup.fisixengine.containers
Classpublic class CircleContainer
InheritanceCircleContainer Inheritance FisixContainer

A Container which uses a CircleParticle as the bounds for its objects, as well as collision detection with the simulation.



Public Properties
 PropertyDefined by
 InheritedcollisionObject : CollisionObject
The Primitive used as the container
FisixContainer
 InheritedinnerDynamics : Boolean = true
A value specifying whether or not the movement of the objects inside the container affect the container's movement.
FisixContainer
 Inheritedobjects : FisixObject
A FisixObject which holds all the objects within the container.
FisixContainer
 Inheritedparent : FisixObject
The FisixObject to which the Container belongs
FisixContainer
Protected Properties
 PropertyDefined by
  object : CircleParticle
CircleContainer
Public Methods
 MethodDefined by
  
CircleContainer(x:Number, y:Number, radius:Number, innerDyn:Boolean = true)
Similar to the constructor of a CircleParticle, but creates a container
CircleContainer
 Inherited
dispose():void
Cleans the object so that it may be picked up by the garbage collector.
FisixContainer
 Inherited
integrate(dt:Number = 1):void
Integrates all the objects within the container.
FisixContainer
 Inherited
render(g:Graphics):void
Renders all the objects within the container to the given Graphics object
FisixContainer
  
solveContainment(noDynamics:Boolean = false):void
Solves collisions between the inner objects and the container.
CircleContainer
 Inherited
unload():void
Removes the container from the FisixObject it belongs to, and disposes of it.
FisixContainer
Property detail
objectproperty
protected var object:CircleParticle
Constructor detail
CircleContainer()constructor
public function CircleContainer(x:Number, y:Number, radius:Number, innerDyn:Boolean = true)

Similar to the constructor of a CircleParticle, but creates a container

Parameters
x:Number — Global x position of the CircleParticle.
 
y:Number — Global y position of the CircleParticle.
 
radius:Number — radius of the CircleParticle.
 
innerDyn:Boolean (default = true) — When set to true, the objects within the container will affect its movement.
Method detail
solveContainment()method
public override function solveContainment(noDynamics:Boolean = false):void

Solves collisions between the inner objects and the container. This method is called by the engine at the appropriate time, and should not be called manually.

Parameters
noDynamics:Boolean (default = false)