TConstraintInstantaneousCalculationData

The TConstraintInstantaneousCalculationData contains information about the instantaneous state of a constraint object. This information is available for applied load external functions for constraint objects.

typedef struct {

int Size;

TVector InFramePosition;

TMatrix InFrameOrientation;

TVector InFrameVelocity;

TVector InFrameAngularVelocity;

TVector OutFramePosition;

TMatrix OutFrameOrientation;

TVector OutFrameVelocity;

TVector OutFrameAngularVelocity;

} TConstraintInstantaneousCalculationData;

Members

Size

Specifies the size, in bytes, of this data structure.

InFramePosition

The global axes X,Y,Z coordinates of the position of the constraint in-frame origin relative to the global origin.

InFrameOrientation

A matrix containing the orientation of the constraint in-frame, relative to global axes. The matrix is in row-major order, so the first 3 elements are the first row, the next 3 the second row and the last 3 the third row. These rows contain the global axes components of the unit vectors in the constraint in-frame local x-, y- and z-axes directions: the first 3 elements of the matrix (first row) are the global axes components of the constraint in-frame local x-direction, the next 3 elements (second row) are the global axes components of the constraint in-frame local y-direction, and the last 3 (third row) are the global axes components of the constraint in-frame local z-direction.

InFrameVelocity

The X,Y,Z components in the global axes directions, of the velocity of the constraint in-frame origin relative to global.

InFrameAngularVelocity

The x,y,z components in the constraint in-frame axes directions, of the angular velocity of the constraint in-frame relative to global.

Note: This vector is given in constraint in-frame axes components, not global axes components.

OutFramePosition

The global axes X,Y,Z coordinates of the position of the constraint out-frame origin relative to the global origin.

OutFrameOrientation

A matrix containing the orientation of the constraint out-frame, relative to global axes. The matrix is in row-major order, so the first 3 elements are the first row, the next 3 the second row and the last 3 the third row. These rows contain the global axes components of the unit vectors in the constraint out-frame local x-, y- and z-axes directions: the first 3 elements of the matrix (first row) are the global axes components of the constraint out-frame local x-direction, the next 3 elements (second row) are the global axes components of the constraint out-frame local y-direction, and the last 3 (third row) are the global axes components of the constraint out-frame local z-direction.

OutFrameVelocity

The X,Y,Z components in the global axes directions, of the velocity of the constraint out-frame origin relative to global.

OutFrameAngularVelocity

The x,y,z components in the constraint out-frame axes directions, of the angular velocity of the constraint out-frame relative to global.

Note: This vector is given in constraint out-frame axes components, not global axes components.

See also

TExtFnInfo, Instantaneous Calculation Data.