ball.contactnum

Syntax

ir = ball.contactnum(bp<,i>)

Get number of active contacts around a ball. The optional argument enables filtering by contact type.

Returns:

ir - active contact number

Arguments:

bp - ball pointer

i - optional unique contact type identification integer