Hinges are limited in their rotation at one axis. Can be used for carwheel simulation.
- 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