contact.list

Syntax

m = contact.list(<s>)

Access the active contacts list. Use the loop foreach construct to iterate through the list. The optional argument allows filtering with a contact class name (e.g., mechanical) or a contact type name (e.g., ball-ball). By default, the mechanical contact list is considered.

Returns:m - global active contact list
Arguments:s - optional contact type name or contact type name