| Package | com.fileitup.fisixengine.graphics |
| Class | public class ConstraintAttacher |
| Inheritance | ConstraintAttacher DisplayAttacher2 DisplayAttacher |
See also
| Method | Defined by | ||
|---|---|---|---|
|
ConstraintAttacher(disp:DisplayObject, con:SpringConstraint, angOffset:Number = 0, angMult:Number = 1, reverse:Boolean = false)
Creates a ConstraintAttacher.
| ConstraintAttacher | ||
![]() |
dispose():void
Disposes of the DisplayAttacher.
| DisplayAttacher2 | |
![]() |
unload():void
Removes the DisplayAttacher from the simulation and disposes of it.
| DisplayAttacher | |
![]() |
update():void
Updates the attached DisplayObject.
| DisplayAttacher2 | |
| ConstraintAttacher | () | constructor |
public function ConstraintAttacher(disp:DisplayObject, con:SpringConstraint, angOffset:Number = 0, angMult:Number = 1, reverse:Boolean = false)Creates a ConstraintAttacher.
Parametersdisp:DisplayObject — A flash DisplayObject (ie. a MovieClip, Sprite, Shape).
|
|
con:SpringConstraint — A Constraint object to attach to. This may also be a StickConstraint.
|
|
angOffset:Number (default = 0) — The amount of degrees to offset the angle of the DisplayObject.
|
|
angMult:Number (default = 1) — A value to multiply the angle by before adding the offset.
|
|
reverse:Boolean (default = false) — If true, sets particleB of the Constraint as the anchor instead of ParticleA.
|