Packagecom.fileitup.fisixengine.particles
Classpublic class GuideParticle
InheritanceGuideParticle Inheritance Particle Inheritance CollisionObject

Used when constructing rigid objects. A guide particle has no size and doesn't perform collisions. It's main use is to keep other particles rigid.



Public Properties
 PropertyDefined by
 Inheritedaccel : Vector
A vector which stores the current acceleration vector of the object
Particle
 Inheritedactive : Boolean = true
Tells the engine whether or not to treat this object as a part of the simulation
This value may be changed at any time during the simulation
CollisionObject
 Inheritedbounce : Number = .5
The object's coefficient of reinstiturion.
CollisionObject
 Inheritedcollidable : Boolean = true
Tells the engine whether or not to check collisions against this object You may set this value at any time during the sumulation to turn collision detection on/off for this object
CollisionObject
 Inheritedcolor : int = -1
The object's rendering color.
CollisionObject
 InheriteddynamicObjectCollisions : Boolean = false
CollisionObject
 Inheritedfixed : Boolean
A fixed CollisionObject is never influenced by collisions You may change this value at any time
CollisionObject
 Inheritedfriction : Number = 0
The object's coefficient of friction.
CollisionObject
 InheritedinheritAttributesOnAdd : Boolean = true
CollisionObject
 InheritedinverseMass : Number
Used for engine calculations.
Particle
 InheritedlastCollision : CollisionData
An internal object which stores the information of the object's last collision
CollisionObject
 Inheritedmagnetic : Boolean = true
If true, the object is affected by magnets
CollisionObject
 Inheritedmass : Number
The mass of the object (between 0 - infinity)
Particle
 InheritedminX : Number
Hold the dimensions of the object's bounding box.
CollisionObject
 Inheritedname : String = ""
CollisionObject
 Inheritedold : Vector
A vector which stores the position of the object before the last integration in global space
Particle
 Inheritedold2 : Vector
A vector representing the object's speed.
Particle
 Inheritedparent : FisixObject
The parent of the object.
CollisionObject
 Inheritedpos : Vector
A vector which stores the position of the object in global coordinates
Particle
 Inheritedraycast : Boolean
An internal property, used by the engine
CollisionObject
 Inheritedtraction : Number = 1
The object's traction.
CollisionObject
 Inheritedtype : String
A string representing the type of object you are dealing with
CollisionObject
 Inheritedvelocity : Vector
Particle
Protected Properties
 PropertyDefined by
 InheriteddetectionMode : int = 0
CollisionObject
 InheritedmaxVel : Number
Particle
 InheritedmFixed : Boolean = false
CollisionObject
 InheritedmMass : Number = 1
Particle
 InheritedmMaterial : String
CollisionObject
 InheritedmStatic : Boolean = false
CollisionObject
 InheritedmyType : String = ""
CollisionObject
 InheritedreactionMode : int = 0
CollisionObject
 InheriteduseRaycasting : Boolean = false
CollisionObject
Public Methods
 MethodDefined by
  
GuideParticle(x:Number, y:Number)
Creates a guide particle.
GuideParticle
 Inherited
Returns whether or not this object's AABB is intersecting with the given object's AABB
CollisionObject
 Inherited
addVelocity(vel:Vector):void
Allows you to explicitly increase/decrease the velocity of the object.
Particle
 Inherited
applyForce(f:Vector, checkAA:Boolean = true):void
Applies a uniform force, moving the entire object.
Particle
 Inherited
Applies a force at the given point.
CollisionObject
 Inherited
clone():Object
Particle
 Inherited
dispose():void
Particle
 Inherited
Calculates the distance squared to another Particle.
Particle
 Inherited
distanceTo(d:Particle):Number
Calculates the distance to another Particle
Particle
 Inherited
CollisionObject
 Inherited
CollisionObject
 Inherited
fix(f:Boolean = true):void
Another way of setting the value 'fixed'.
CollisionObject
 Inherited
CollisionObject
 Inherited
getMaterial():String
The name of the current material applied to the object
CollisionObject
 Inherited
CollisionObject
 Inherited
getNormalAt(p:Vector, dirVector:Vector = null):Vector
CollisionObject
 Inherited
CollisionObject
  
integrate(dt:Number = 1):void
Integrates the object.
GuideParticle
 Inherited
isStatic():Boolean
Returns a value indicating whether or not this object was made static.
CollisionObject
 Inherited
makeStatic():void
Makes the object static.
CollisionObject
 Inherited
move(mX:Number, mY:Number):void
Similar to thrust, but does not change the object's velocity
Particle
 Inherited
moveTo(mX:Number, mY:Number, ease:Number = 1):void
Particle
 Inherited
onInit():void
Called after the object is initiated by a FisixObject to which it was added
CollisionObject
 Inherited
pointForce(point:Vector, force:Number):void
Particle
  
render(g:Graphics):void
Renders a primitive shape of the object to the given Graphics object.
GuideParticle
 Inherited
renderBoundingBox(g:Graphics):void
Renders a rectangle representing the bounding box to the graphics object
CollisionObject
 Inherited
rotationalForce(deg:Number, center:Vector):void
Applies a force vector derived from the given angle value
Particle
 Inherited
rotationalThrust(deg:Number, center:Vector):void
Thrusts the object with a vector derived from the given angle value
Particle
 Inherited
setDetectionMode(m:int):void
Sets the collision detection mode to be used by the object
CollisionObject
 Inherited
setMaterial(mName:String):void
Sets the material of the object This modifies the object's 'friction', 'bounce', 'color' and 'traction' properties.
CollisionObject
 Inherited
setPosition(tX:Number, tY:Number):void
Sets the position of the object in the given global position and resets it's acceleration and velocity.
Particle
 Inherited
setReactionMode(m:int):void
Sets the collision reaction mode to be used by the object
CollisionObject
 Inherited
setVelocity(vel:Vector, checkAA:Boolean = true):void
Allows you to explicitly set the velocity of the object.
Particle
 Inherited
Used to keep the object within the given rectangular boundaries.
Particle
 Inherited
Particle
 Inherited
thrust(tX:Number, tY:Number, checkAA:Boolean = true):void
Moves the object uniformly with the given x,y values and adds the values to its velocity.
Particle
 Inherited
thrustPoint(tX:Number, tY:Number, p:Vector):void
Unlike thrust which moves the whole object, thrustPoint() hits the object from the given point, with the given x,y values and adds the values to its velocity.
CollisionObject
 Inherited
thrustTo(tX:Number, tY:Number, ease:Number = 1):void
Thrusts the object to the given position in global space
Particle
 Inherited
Same as thrust() but takes in a vector instead of an x and y value
Particle
 Inherited
unload():void
Removes the object from the engine and disposes of it.
CollisionObject
 Inherited
Updates the bounding box of the object.
Particle
Protected Methods
 MethodDefined by
 Inherited
Override this function to perform an action after a collision is resolved
CollisionObject
 Inherited
afterIntegrate(dt:Number):void
Override this method to perform checks after the object is integrated on every frame.
Particle
 Inherited
afterUnload():void
Override this method to perform actions after the object has been unloaded.
CollisionObject
 Inherited
beforeIntegrate(dt:Number):void
Override this method to perform checks before the object is integrated on every frame.
Particle
 Inherited
Override this function to perform an action at the time a collision is detected
CollisionObject
 Inherited
onUnload():void
Override this method to perform actions once the object is unloaded.
CollisionObject
 Inherited
setMaxVel(v:Number):void
Particle
Constructor detail
GuideParticle()constructor
public function GuideParticle(x:Number, y:Number)

Creates a guide particle.

Parameters
x:Number — Global x position of the particle.
 
y:Number — Global y position of the particle.
Method detail
integrate()method
public override function integrate(dt:Number = 1):void

Integrates the object. This is an internal methods that's called on every frame--calling it manually will probably have no positive affects.
If you would like to perform checks every time the object move, do not override this method. Instead override beforeIntegrate() and afterIntegrate().

Parameters
dt:Number (default = 1) — the amount of times in seconds to integrate.
render()method 
public override function render(g:Graphics):void

Renders a primitive shape of the object to the given Graphics object. Usually this method is automatically invoked by the engine, but you may use it to render individual objects.

Parameters
g:Graphics