Package | com.fileitup.fisixengine.particles |
Class | public class GuideParticle |
Inheritance | GuideParticle ![]() ![]() |
Method | Defined by | ||
---|---|---|---|
GuideParticle(x:Number, y:Number)
Creates a guide particle.
| GuideParticle | ||
![]() |
aabbIntersection(obj:CollisionObject):Boolean
Returns whether or not this object's AABB is intersecting with the given object's AABB
| CollisionObject | |
![]() |
addVelocity(vel:Vector):void
Allows you to explicitly increase/decrease the velocity of the object.
| Particle | |
![]() |
applyForce(f:Vector, checkAA:Boolean = true):void
Applies a uniform force, moving the entire object.
| Particle | |
![]() |
Applies a force at the given point.
| CollisionObject | |
![]() |
clone():Object
| Particle | |
![]() |
dispose():void
| Particle | |
![]() |
distanceSquaredTo(d:Particle):Number
Calculates the distance squared to another Particle.
| Particle | |
![]() |
distanceTo(d:Particle):Number
Calculates the distance to another Particle
| Particle | |
![]() |
fireAfterCollision():void
| CollisionObject | |
![]() |
fireOnCollision():void
| CollisionObject | |
![]() |
fix(f:Boolean = true):void
Another way of setting the value 'fixed'.
| CollisionObject | |
![]() |
getDetectionMode():int
| CollisionObject | |
![]() |
getMaterial():String
The name of the current material applied to the object
| CollisionObject | |
![]() |
getNormalAngleAt(p:Vector):Number
| CollisionObject | |
![]() | CollisionObject | ||
![]() |
getReactionMode():int
| CollisionObject | |
Integrates the object.
| GuideParticle | ||
![]() |
isStatic():Boolean
Returns a value indicating whether or not this object was made static.
| CollisionObject | |
![]() |
makeStatic():void
Makes the object static.
| CollisionObject | |
![]() |
move(mX:Number, mY:Number):void
Similar to thrust, but does not change the object's velocity
| Particle | |
![]() |
moveTo(mX:Number, mY:Number, ease:Number = 1):void
| Particle | |
![]() |
onInit():void
Called after the object is initiated by a FisixObject to which it was added
| CollisionObject | |
![]() |
pointForce(point:Vector, force:Number):void
| Particle | |
Renders a primitive shape of the object to the given Graphics object.
| GuideParticle | ||
![]() |
renderBoundingBox(g:Graphics):void
Renders a rectangle representing the bounding box to the graphics object
| CollisionObject | |
![]() |
rotationalForce(deg:Number, center:Vector):void
Applies a force vector derived from the given angle value
| Particle | |
![]() |
rotationalThrust(deg:Number, center:Vector):void
Thrusts the object with a vector derived from the given angle value
| Particle | |
![]() |
setDetectionMode(m:int):void
Sets the collision detection mode to be used by the object
| CollisionObject | |
![]() |
setMaterial(mName:String):void
Sets the material of the object
This modifies the object's 'friction', 'bounce', 'color' and 'traction' properties.
| CollisionObject | |
![]() |
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 | |
![]() |
setReactionMode(m:int):void
Sets the collision reaction mode to be used by the object
| CollisionObject | |
![]() |
setVelocity(vel:Vector, checkAA:Boolean = true):void
Allows you to explicitly set the velocity of the object.
| Particle | |
![]() |
solveBoundsCollisions(w:BoundingBox):void
Used to keep the object within the given rectangular boundaries.
| Particle | |
![]() |
solveReactions():void
| Particle | |
![]() |
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 | |
![]() |
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 | |
![]() |
thrustTo(tX:Number, tY:Number, ease:Number = 1):void
Thrusts the object to the given position in global space
| Particle | |
![]() |
thrustVector(v:Vector):void
Same as thrust() but takes in a vector instead of an x and y value
| Particle | |
![]() |
unload():void
Removes the object from the engine and disposes of it.
| CollisionObject | |
![]() |
updateBoundingBox():void
Updates the bounding box of the object.
| Particle |
GuideParticle | () | constructor |
public function GuideParticle(x:Number, y:Number)
Creates a guide particle.
Parametersx:Number — Global x position of the particle.
|
|
y:Number — Global y position of the particle.
|
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().
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.
Parametersg:Graphics |