2009-07-06から1日間の記事一覧

box2dはlistener使わなくても当たり判定取れるのだね。

listener使うと、いろいろ複雑になるけど、step()した後に、 bodyからコンタクトリストたどるだけでいいみたい。 ContactEdge c=bodies[index].m_contactList; while(c!=null){ c.other//あたったbody c=c.next; }