ios - box2d: detecting the fixtures involved in collision -


is possible detect fixture in body involved in collision? have body. has 2 fixtures. when other body comes , collides one, need take action when hits 1 fixture , not other. getcollisionlist() gives array of contacts, each of contacts has getfixturea() body a, , getfixtureb() body b. if 1 bodies have multiple fixures, how deal it? getfixturelist() body object of help?

the getfixturea() , getfixtureb() methods return fixture references, not body references state.

to ignore collisions particular fixture can implement collision filtering, define fixture sensor or disable contact during presolve() based on fixtures involved in collision. 1 choose depend on particular application.

check out fixture documentation , handy box2d collision overview.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -