Package | com.fileitup.fisixengine.constraints |
Class | public class StickConstraint |
Inheritance | StickConstraint ![]() ![]() |
See also
Property | Defined by | ||
---|---|---|---|
![]() | breakPoint : Number The point at which a constraint should be broken.
| Constraint | |
![]() | broken : Boolean Tells you whether or not a constraint is currently broken.
| Constraint | |
![]() | max : Number The upper range of the constraint.
| SpringConstraint | |
![]() | min : Number The lower range of the constraint.
| SpringConstraint | |
![]() | parent : FisixObject | Constraint | |
![]() | particleA : Particle | SpringConstraint | |
![]() | particleB : Particle | SpringConstraint | |
![]() | restLength : Number The length that the constraint will attempt to maintain.
| SpringConstraint | |
stiffness : Number This property is always 1 and cannot be changed
| StickConstraint | ||
![]() | unloadOnBreak : Boolean = true When true, the constraint is removed from the simulation when broken.
| Constraint |
Method | Defined by | ||
---|---|---|---|
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 | ||
![]() |
dispose():void
| SpringConstraint | |
![]() |
getAngle():Number
| SpringConstraint | |
![]() |
render(g:Graphics):void
| SpringConstraint | |
![]() |
setMinMax(minimum:Number, maximum:Number):void
Sets both min and max values in one line
| Constraint | |
![]() |
solve():void
| SpringConstraint | |
![]() |
unload():void
| Constraint |
stiffness | property |
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
StickConstraint | () | constructor |
public function StickConstraint(pA:Particle, pB:Particle, rLen:Number = -1)
Parameters
pA:Particle |
|
pB:Particle |
|
rLen:Number (default = -1 )
|
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.
Parametersfis: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...
Parametersfis: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.
Parametersfis: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