This translation is community contributed and may not be up to date. We only maintain the English version of the documentation. Read this manual in English
物理引擎通过组与掩码处理碰撞. 这个组就是 碰撞组. 每个碰撞对象都有2个属性用以控制其与其他物体的碰撞, Group 和 Mask.
碰撞只发生在两个物体所处的组分别被包含在对方的 碰撞掩码 之中的情况下.
掩码 可包含多个组名, 以实现复杂的碰撞控制.
当组码掩码都相匹配两个碰撞对象接触时, 游戏引擎就会发出 碰撞消息 作为响应.
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB