用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:controllercolliderhit:controllercolliderhit

ControllerColliderHit 角色控制器碰撞器碰撞信息

class in UnityEngine

Description 描述

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

ControllerColliderHit使用于CharacterController.OnControllerColliderHit有关碰撞以及如何处理碰撞提供更多详细信息。

Variables 变量

colliderThe collider that was hit by the controller.
由角色控制器碰到的碰撞器。
controllerThe controller that hit the collider.
碰到的角色控制器。
gameObjectThe game object that was hit by the controller.
角色控制器碰到的该碰撞器的游戏对象。
moveDirectionThe direction the CharacterController was moving in when the collision occured.
当发生碰撞,角色控制移动的方向。
moveLengthHow far the character has travelled until it hit the collider.
直到碰到该碰撞器角色已经走了多远。
normalThe normal of the surface we collided with in world space.
在世界坐标空间碰撞表面的法线。
pointThe impact point in world space.
在世界坐标空间的碰撞点。
rigidbodyThe rigidbody that was hit by the controller.
由角色控制器碰到的刚体。
transformThe transform that was hit by the controller.
角色控制器碰到的碰撞器的Transform。
script/unityengine/classes/controllercolliderhit/controllercolliderhit.txt · 最后更改: 2016/08/02 05:33 (外部编辑)