Constructor
# new DuOCOLimb(limbopt, sideopt, locationopt, typeopt)
Creates a new OCO Limb.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
limb |
DuOCO.Limb
|
<optional> |
DuOCO.Limb.CUSTOM | A Predefined limb |
side |
DuOCO.Side
|
<optional> |
DuOCO.Side.NONE | The side of the limb |
location |
DuOCO.Location
|
<optional> |
DuOCO.Location.NONE | The location of the limb |
type |
DuOCO.LimbType
|
<optional> |
DuOCO.LimbType.CUSTOM | The type of the limb |
Members
Methods
# bounds() → {Array.<float>}
Gets the boundaries of the limb
[left, top, right, bottom]
Array.<float>
# newArmature(name, numopt, lengthopt) → {DuOCOBone}
Creates a new chain of bones and adds it to the limb.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string
|
The name of the bones (will increment if needed) | ||
num |
int
|
<optional> |
2 | The number of bones in the chain |
length |
float
|
<optional> |
100.0 | The length in centimeters |
The root bone.