Physics物理学
- bounceThreshold
- CapsuleCastAll
- CapsuleCast
- CheckCapsule
- CheckSphere
- GetIgnoreLayerCollision
- gravity
- IgnoreCollision
- IgnoreLayerCollision
- Linecast
- maxAngularVelocity
- minPenetrationForPenalty
- OverlapSphere
- RaycastAll
- Raycast
- sleepAngularVelocity
- sleepVelocity
- solverIterationCount
- SphereCastAll
- SphereCast
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
最后修改:2011年4月9日 Saturday 12:42