box2d collision groups

后端 未结 5 2008
鱼传尺愫
鱼传尺愫 2021-01-04 18:47

does anyone know whether bodies only collide when (body1.categoryBits & body2.maskBits) && (body1.maskBits & body2.categoryBits) ? or do they already collid

5条回答
  •  臣服心动
    2021-01-04 19:11

    If anyone is still looking for more explanations, I made a detailed tutorial here :
    http://aurelienribon.wordpress.com/2011/07/01/box2d-tutorial-collision-filtering/

提交回复
热议问题