contact.normal

Syntax

Vector Access

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

Get the contact unit normal.

Returns:

v - contact unit normal vector or component

Arguments:

c - contact pointer

i - optional vector component

Component Access

f = contact.normal.x(c)

Get the x-component of the contact unit normal.

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

Get the y-component of the contact unit normal.

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

Get the z-component of the contact unit normal.

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