contact.otherend

Syntax

pr = contact.otherend(c,p)

Get the other end of a contact. Contacts exist between two pieces; given a contact and a piece, this intrinsic returns the other piece in the contact.

Returns:

pr - pointer of piece (i.e., ball, pebble, wall, facet, rblock, etc.) on other end of the contact

Arguments:

c - contact pointer

Arguments:

p - pointer of piece (i.e., ball, pebble, wall facet, rblock, etc.) on one end of the contact