contact.find
Syntax
- cp = contact.find(s,id<,id2>)
Find a contact. The first argument s indicates the contact type and may be a string referring to the contact type name (e.g., ball-ball) or an integer referring to the contact type identifier. If only two arguments are provided, the second argument id refers to the contact ID. If three arguments are provided, then the second and third arguments id and id2 refer to pieces’ IDs. Note that the order is important if the contact is not between pieces of the same type (id referring to the ID of the first end of the contact, and id2 to the ID of the second end). If the contact is between pieces of the same type, then the order is ignored.
Returns: cp - contact pointer
Arguments: s - contact type name or integer identifier
id - contact ID or piece ID
id2 - optional piece ID
Was this helpful? ... | PFC © 2021, Itasca | Updated: Feb 25, 2024 |