contact.pos

Syntax

Vector Access

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

Get the contact position.

Returns:

v - contact position vector or component

Arguments:

c - contact pointer

i - optional vector component

Component Access

f = contact.pos.x(c)

Get the x-component of the contact position.

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

Get the y-component of the contact position.

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

Get the z-component of the contact position.

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