contact.branch

Syntax

Vector Access

v = contact.branch(c<,i>)

Get the contact branch vector. The branch vector is defined as the vector connecting the centroid of the body containing contact.end1 to the centroid of the body containing contact.end2.

Returns:

v - contact branch vector or component

Arguments:

c - contact pointer

i - optional vector component

Component Access

f = contact.branch.x(c)

Get the x-component of the contact branch vector.

Returns:f - x-component of the contact branch vector
Arguments:c - contact pointer
f = contact.branch.y(c)

Get the y-component of the contact branch vector.

Returns:f - y-component of the contact branch vector
Arguments:c - contact pointer
f = contact.branch.z(c) (3D ONLY)

Get the z-component of the contact branch vector.

Returns:f - z-component of the contact branch vector
Arguments:c - contact pointer