box2dはlistener使わなくても当たり判定取れるのだね。
listener使うと、いろいろ複雑になるけど、step()した後に、
bodyからコンタクトリストたどるだけでいいみたい。
ContactEdge c=bodies[index].m_contactList;
while(c!=null){
c.other//あたったbody
c=c.next;
}
listener使うと、いろいろ複雑になるけど、step()した後に、
bodyからコンタクトリストたどるだけでいいみたい。
ContactEdge c=bodies[index].m_contactList;
while(c!=null){
c.other//あたったbody
c=c.next;
}