Cyclone | Cyclone: cyclone::Joint Class Reference |
#include <joints.h>
Inheritance diagram for cyclone::Joint:
Public Member Functions | |
void | set (RigidBody *a, const Vector3 &a_pos, RigidBody *b, const Vector3 &b_pos, real error) |
Configures the joint in one go. | |
unsigned | addContact (Contact *contact, unsigned limit) const |
Generates the contacts required to restore the joint if it has been violated. | |
Public Attributes | |
RigidBody * | body [2] |
Holds the two rigid bodies that are connected by this joint. | |
Vector3 | position [2] |
Holds the relative location of the connection for each body, given in local coordinates. | |
real | error |
Holds the maximum displacement at the joint before the joint is considered to be violated. |
In a general phyiscs engine there may be many different types of joint, that reduce the number of relative degrees of freedom between two objects. This joint is a common position joint: each object has a location (given in body-coordinates) that will be kept at the same point in the simulation.
|
Generates the contacts required to restore the joint if it has been violated.
Implements cyclone::ContactGenerator. |
|
Configures the joint in one go.
|
|
Holds the two rigid bodies that are connected by this joint.
|
|
Holds the maximum displacement at the joint before the joint is considered to be violated. This is normally a small, epsilon value. It can be larger, however, in which case the joint will behave as if an inelastic cable joined the bodies at their joint locations. |
|
Holds the relative location of the connection for each body, given in local coordinates.
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:24 2006). |