ControllerColliderHit 控制碰撞器碰撞


ControllerColliderHit is used by CharacterController.OnControllerColliderHit to give detailed information about the collision and how to deal with it.

ControllerColliderHit使用于CharacterController.OnControllerColliderHit关于碰撞以及如何处理它提供

更多详细信息。


Variables变量

  • controller
    The controller that hit the collider
          碰到碰撞器的控制器。
  • collider
    The collider that was hit by the controller
          由控制器碰到的碰撞器。
  • rigidbody
    The rigidbody that was hit by the controller.
          由控制器碰到的刚体。
  • gameObject
    The game object that was hit by the controller.
          控制器碰到的游戏物体。
  • transform
    The transform that was hit by the controller.
          控制器碰到的变换(transform)。
  • point
    The impact point in world space
          在世界坐标空间的碰撞点。
  • normal
    The normal of the surface we collided with in world space
          在世界坐标空间碰撞表面的法线。
  • moveDirection
    Approximately the direction from the center of the capsule to the point we touch.
          这能用于查找合适的方向应用力到接触的刚体。
  • moveLength
    How far the character has travelled until it hit the collider.
          直到它碰到碰撞器之前角色移动了多少距离。


,