Hello,I have a problem that has puzzled me a day and I need some help:
I have created two body in my world --A and B.A is a dynamic body and B is a static body.And I have extends ContactListener.Now I hope it will not create contactpoint when the two body contact each other.After read related document,I know I need to set the groupIndex of the two body to same negative value.But when I run my program,I found the function public void add(ContactPoint arg0) can detect the contactpoint,that to say,after the contact between ,the contactPoint be created.Who can tell me how to avoid creating contactPoint after contact.Thank you!......
I have created two body in my world --A and B.A is a dynamic body and B is a static body.And I have extends ContactListener.Now I hope it will not create contactpoint when the two body contact each other.After read related document,I know I need to set the groupIndex of the two body to same negative value.But when I run my program,I found the function public void add(ContactPoint arg0) can detect the contactpoint,that to say,after the contact between ,the contactPoint be created.Who can tell me how to avoid creating contactPoint after contact.Thank you!......