用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:raycasthit:raycasthit

RaycastHit 射线投射碰撞信息

struct in UnityEngine

Description 描述

Structure used to get information back from a raycast.

该结构用来获取射线投射返回的信息。

See Also: Physics.Raycast, Physics:Physics.Linecast, Physics.RaycastAll.

Variables 变量

barycentricCoordinateThe barycentric coordinate of the triangle we hit.
碰到的三角形的重心坐标。
colliderThe Collider that was hit.
碰到的碰撞器。
distanceThe distance from the ray's origin to the impact point.
从射线的原点到触碰点的距离。
lightmapCoordThe uv lightmap coordinate at the impact point.
在触碰点的UV光照贴图的坐标。
normalThe normal of the surface the ray hit.
射线触碰表面的法线。
pointThe impact point in world space where the ray hit the collider.
在世界坐标空间,射线碰到碰撞器的接触点。
rigidbodyThe Rigidbody of the collider that was hit. If the collider is not attached to a rigidbody then it is null.
碰到的该碰撞器上的刚体。如果碰撞器上没有附加刚体,那么返回null。
textureCoordThe uv texture coordinate at the impact point.
在触碰点的UV纹理坐标。
textureCoord2The secondary uv texture coordinate at the impact point.
在接触点处的第二套UV纹理坐标。
transformThe Transform of the rigidbody or collider that was hit.
碰到的该刚体或碰撞器的变换。
triangleIndexThe index of the triangle that was hit.
碰到的三角形的索引。
script/unityengine/classes/raycasthit/raycasthit.txt · 最后更改: 2016/08/02 05:33 (外部编辑)