if ball.group(contact.end1(ct))=='rubber' then
如果之前分组的时候加了插槽(假设是插槽‘1’),这里只是这么调用是不够的,应修改为:
if ball.group(contact.end1(ct),1)=='rubber' then
另外:==可用于判断语句,而=不可用于判断语句
if ball.group(contact.end1(ct))=='rubber' then
如果之前分组的时候加了插槽(假设是插槽‘1’),这里只是这么调用是不够的,应修改为:
if ball.group(contact.end1(ct),1)=='rubber' then
另外:==可用于判断语句,而=不可用于判断语句