Packagecom.fileitup.fisixengine.constraints
Classpublic class StickConstraint
InheritanceStickConstraint Inheritance SpringConstraint Inheritance Constraint

A completely stiff SpringConstraint. For more information, see the SpringConstraint documentation

See also

SpringConstraint


Public Properties
 PropertyDefined by
 InheritedbreakPoint : Number
The point at which a constraint should be broken.
Constraint
 Inheritedbroken : Boolean
Tells you whether or not a constraint is currently broken.
Constraint
 Inheritedmax : Number
The upper range of the constraint.
SpringConstraint
 Inheritedmin : Number
The lower range of the constraint.
SpringConstraint
 Inheritedparent : FisixObject
Constraint
 InheritedparticleA : Particle
SpringConstraint
 InheritedparticleB : Particle
SpringConstraint
 InheritedrestLength : Number
The length that the constraint will attempt to maintain.
SpringConstraint
  stiffness : Number
This property is always 1 and cannot be changed
StickConstraint
 InheritedunloadOnBreak : Boolean = true
When true, the constraint is removed from the simulation when broken.
Constraint
Protected Properties
 PropertyDefined by
 InheritedrestLengthSquared : Number
SpringConstraint
 InheritedrestMinSquared : Number
SpringConstraint
Public Methods
 MethodDefined by
  
StickConstraint(pA:Particle, pB:Particle, rLen:Number = -1)
StickConstraint
  
constraintAll(fis:FisixObject, arr:Array, breakPoint:Number = 0):void
[static]A static method for quickly constraining a list of objects to eachother.
StickConstraint
  
constraintChain(fis:FisixObject, arr:Array, breakPoint:Number = 0):void
[static]A static method for quickly constraining a list of objects in a chain.
StickConstraint
  
constraintTwoLists(fis:FisixObject, arrA:Array, arrB:Array, breakPoint:Number = 0):void
[static]A static method for quickly constraining two lists of of objects to eachother.
StickConstraint
 Inherited
dispose():void
SpringConstraint
 Inherited
getAngle():Number
SpringConstraint
 Inherited
render(g:Graphics):void
SpringConstraint
 Inherited
setMinMax(minimum:Number, maximum:Number):void
Sets both min and max values in one line
Constraint
 Inherited
solve():void
SpringConstraint
 Inherited
unload():void
Constraint
Protected Methods
 MethodDefined by
 Inherited
Constraint
 Inherited
onBreak():void
Constraint
 Inherited
onUnload():void
Constraint
 Inherited
solveConstraint(len:Number, len2:Number):void
SpringConstraint
Property detail
stiffnessproperty
stiffness:Number  [read-write]

This property is always 1 and cannot be changed

Implementation
    public function get stiffness():Number
    public function set stiffness(value:Number):void
Constructor detail
StickConstraint()constructor
public function StickConstraint(pA:Particle, pB:Particle, rLen:Number = -1)Parameters
pA:Particle
 
pB:Particle
 
rLen:Number (default = -1)
Method detail
constraintAll()method
public static function constraintAll(fis:FisixObject, arr:Array, breakPoint:Number = 0):void

A static method for quickly constraining a list of objects to eachother.

Parameters
fis:FisixObject — The FisixObject in which the constraints will be created.
 
arr:Array — An array of Particles to be constrained to eachother.
 
breakPoint:Number (default = 0) — The breakPoint of the created springs. leave at 0 for unbreakable springs.

See also

constraintChain()method 
public static function constraintChain(fis:FisixObject, arr:Array, breakPoint:Number = 0):void

A static method for quickly constraining a list of objects in a chain. The first particle will be constrained to the second particle, which will be constrained to the third particle, and so on...

Parameters
fis:FisixObject — The FisixObject in which the constraints will be created.
 
arr:Array — An array of Particles to be constrained into a chain.
 
breakPoint:Number (default = 0) — The breakPoint of the created springs. leave at 0 for unbreakable springs.

See also

constraintTwoLists()method 
public static function constraintTwoLists(fis:FisixObject, arrA:Array, arrB:Array, breakPoint:Number = 0):void

A static method for quickly constraining two lists of of objects to eachother. All the objects in the first list will be constrained to all the objects in the second list.

Parameters
fis:FisixObject — The FisixObject in which the constraints will be created.
 
arrA:Array — The first array of Particles to be constrained.
 
arrB:Array — The other array of Particles to be constrained.
 
breakPoint:Number (default = 0) — The breakPoint of the created springs. leave at 0 for unbreakable springs.

See also