ControllerColliderHit 控制碰撞器碰撞
ControllerColliderHit is used by CharacterController.OnControllerColliderHit to give detailed information about the collision and how to deal with it.
ControllerColliderHit使用于CharacterController.OnControllerColliderHit关于碰撞以及如何处理它提供更多详细信息。
Variables变量
-
The controller that hit the collider
碰到碰撞器的控制器。 -
The collider that was hit by the controller
由控制器碰到的碰撞器。 -
The rigidbody that was hit by the controller.
由控制器碰到的刚体。 -
The game object that was hit by the controller.
控制器碰到的游戏物体。 -
The transform that was hit by the controller.
控制器碰到的变换(transform)。 -
The impact point in world space
在世界坐标空间的碰撞点。 -
The normal of the surface we collided with in world space
在世界坐标空间碰撞表面的法线。 -
Approximately the direction from the center of the capsule to the point we touch.
这能用于查找合适的方向应用力到接触的刚体。 -
How far the character has travelled until it hit the collider.
直到它碰到碰撞器之前角色移动了多少距离。
最后修改:2010年12月23日 Thursday 20:12