class in UnityEngine
ControllerColliderHit is used by CharacterController.OnControllerColliderHit to give detailed information about the collision and how to deal with it.
ControllerColliderHit使用于CharacterController.OnControllerColliderHit有关碰撞以及如何处理碰撞提供更多详细信息。
collider | The collider that was hit by the controller. 由角色控制器碰到的碰撞器。 |
controller | The controller that hit the collider. 碰到的角色控制器。 |
gameObject | The game object that was hit by the controller. 角色控制器碰到的该碰撞器的游戏对象。 |
moveDirection | The direction the CharacterController was moving in when the collision occured. 当发生碰撞,角色控制移动的方向。 |
moveLength | How far the character has travelled until it hit the collider. 直到碰到该碰撞器角色已经走了多远。 |
normal | The normal of the surface we collided with in world space. 在世界坐标空间碰撞表面的法线。 |
point | The impact point in world space. 在世界坐标空间的碰撞点。 |
rigidbody | The rigidbody that was hit by the controller. 由角色控制器碰到的刚体。 |
transform | The transform that was hit by the controller. 角色控制器碰到的碰撞器的Transform。 |