Description for class BallJoint:
This subclass of Joint is used to link two Link objects together using a ball joint.
A BallJoint has three degrees of freedom. It can tilt "up-and-down" and "side-to-side", and can "twist". Your neck is basically a ball joint--your head tilt up-and-down, side-to-side, and can twist (although not all the way around--if your head turns all the way around, please consult the user manual for repair).
This joint uses a scheme of 3 Euler angles to represent the relative rotation between two objects. The Z-axis of rotation is automatically derived from the parent link point, meaning that the Z-axis rotation is always a "twist" relative to the link point. The X-axis of rotation is specified by the user with the normal argument. The Y-axis is automatically derived from the other two.
Because of a limitation of the physics engine, the Y-axis rotation is limited to a range of approximately +/- 80 degrees of rotation.
If versions of breve prior to 2.3, there was no normal argument because the axes of rotation were automatically defined. The argument is therefore optional for backwards compatibility only, and should always be specified when writing new code.
Inherits from Joint
Full API documentation for the class BallJoint: