Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
RaycastHit 光线投射碰撞(射线碰撞检测)
# RaycastHit 光线投射碰撞(射线碰撞检测) Struct Structure used to get information back from a raycast. 用来获取从 raycast 函数中得到的信息反馈的结构。 参见:[Physics.Raycast](../Physics/Physics.Raycast.html), [Physics.Linecast](../Physics/Physics.Linecast.html), [Physics.RaycastAll](../Physics/Physics.RaycastAll.html). ### Variables**变量** * [point](RaycastHit.point.html) The impact point in world space where the ray hit the collider. 在世界空间中,射线碰到碰撞器的碰撞点。 * [normal](RaycastHit.normal.html) The normal of the surface the ray hit. 射线所碰到的表面的法线。 * [barycentricCoordinate](RaycastHit.barycentricCoordinate.html) The barycentric coordinate of the triangle we hit. 所碰到的三角形的重心坐标。 * [distance](RaycastHit.distance.html) The distance from the ray's origin to the impact point. 从光线的原点到碰撞点的距离。 * [triangleIndex](RaycastHit.triangleIndex.html) The index of the triangle that was hit. 碰到的三角形的索引。 * [textureCoord](RaycastHit.textureCoord.html) The uv texture coordinate at the impact point. 在碰撞点的 UV 纹理坐标。 * [textureCoord2](RaycastHit.textureCoord2.html) The secondary uv texture coordinate at the impact point. 碰撞点的第二个 UV 纹理坐标。 * [lightmapCoord](RaycastHit.lightmapCoord.html) The uv lightmap coordinate at the impact point. 所在碰撞点的光照图 UV 坐标。 * [collider](RaycastHit.collider.html) The Collider that was hit. 碰到的碰撞器。 * [rigidbody](RaycastHit.rigidbody.html) The Rigidbody of the collider that was hit. If the collider is not attached to a rigidbody then it is null. 碰到的碰撞器的 Rigidbody。如果该碰撞器没有附加刚体那么它为 null。 * [transform](RaycastHit.transform.html) The Transform of the rigidbody or collider that was hit. 碰到的刚体或碰撞器的变换。
da
2022年5月23日 14:26
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码