# Class: boneid

Bone within a model. Normally reference state is returned but its also possible to retrieve animcache values.

## Hierarchy

    o-+ ressubid
      o-+ boneid

## Interfaces:

- hashid

## Methods:

### Method overview:

- disableaxis
- enableaxis
- init
- matrix
- name
- parent
- pos
- rotaxis
- rotdeg
- rotrad

disableaxis (boneid,int axis)
  returns: ()
  disable bone's rotation axis
enableaxis (boneid,int axis,boolean limit,float minangle,float maxangle)
  returns: ()
  enables a bone's rotation axis when its controlled by bonecontrol and allows limited rotation. limit is relative to reference position.
init (boneid,string name,matrix16 refmatrix,[boneid parent])
  returns: ()
  sets bonedata, only works on empty bones in model.new generated models. matrix should not have scaling.
matrix (boneid,[boolean animcache])
  returns: (matrix16)
  returns bone's reference matrix in object space.
name (boneid)
  returns: (string)
  returns name
parent (boneid)
  returns: ([boneid])
  returns parent if exists
pos (boneid,[boolean animcache])
  returns: (float x,y,z)
  returns bone's reference position in object space
rotaxis (boneid,[boolean animcache])
  returns: (float Xx,Xy,Xz, Yx,Yy,Yz, Zx,Zy,Zz)
  returns bone's reference rotation in object space. axis
rotdeg (boneid,[boolean animcache])
  returns: (float x,y,z)
  returns bone's reference rotation in object space. degrees
rotrad (boneid,[boolean animcache])
  returns: (float x,y,z)
  returns bone's reference rotation in object space. radians

## Inherited Methods:

### From ressubid

hostinfo