Unity 几种碰撞模式

1、OnControllerColliderHit  事件 (角色控制器使用)

2、Physics.Raycast 函数 

3、OnTriggerEnter 事件 (碰撞物体使用,给碰撞物体添加碰撞器,并且Is Trigger需勾上)

4、OnCollisionEnter 事件 (碰撞物体必须是刚体)

原文地址:https://www.cnblogs.com/martin-li/p/5063839.html