Physics.IgnoreLayerCollision 忽略碰撞层

static function IgnoreLayerCollision (layer1 : int, layer2 : int, ignore : bool = true) : void

Description描述

Makes the collision detection system ignore all collisions between any collider in layer1 and any collider in layer2.

使碰撞侦测忽略层1和层2之间的所有碰撞器。

You can set the default values for your project for any layer combinations in the Physics inspector.

也可以在Physics 检视面板中,设置碰撞检测的默认忽略层。

参见:Physics.GetIgnoreLayerCollision,Physics.IgnoreCollision

Page last updated: 2011-4-9