I’m creating a multi-player platform game in Cocos2D (objectiveC). I create dynamic bodies for the players as it applies gravity and platform collision however I don’t want the players to be able to push each other characters (while fun, too much grief). What is the best way to achieve this?
Thanks
You can set the
b2Filterdata of an object, setting thegroupIndexof bodies to the same, negative number means they don’t collide with each other.b2Filtersare set on a per fixture basis. (LINK)