# Class: djointhinge

Hinges are limited in their rotation at one axis. Can be used for carwheel simulation.

## Hierarchy

    o-+ ode
      o-+ djoint
        o-+ djointhinge

## Methods:

### Method overview:

- anchor
- angle
- axis
- new

new ([float x,y,z],[djointgroup group])
  returns: (djointhinge)
  creates a new hingejoint
anchor (djointhinge,[float x,y,z])
  returns: ([float x1,y1,z1,x2,y2,z2])
  sets anchor point in worldcoordinates if x,y,z is given. If not, the two anchorpoints are returned that both bodies apply.
angle (djointhinge)
  returns: ([float angle,rate])
  sets/gets axis orientation of the hinge.The angle is measured between the two bodies, or between the body and the static environment. The angle will be between -pi..pi. When the hinge anchor or axis is set, the current position of the attached bodies is examined and that position will be the zero angle.
axis (djointhinge,[float x,y,z])
  returns: ([float x,y,z])
  sets/gets axis orientation of the hinge

## Inherited Methods:

### From djoint

attach, body1, body2, bounce, bounce2, bounce3, cfm, cfm2, cfm3, delete, feedback, fmax, fmax2, fmax3, fudgefactor, fudgefactor2, fudgefactor3, geom1, geom2, histop, histop2, histop3, lostop, lostop2, lostop3, stopcfm, stopcfm2, stopcfm3, stoperp, stoperp2, stoperp3, velocity, velocity2, velocity3