Version: 2020.2
言語: 日本語

RaycastHit

struct in UnityEngine

マニュアルに切り替える

説明

レイキャストによる情報を得るための構造体

変数

articulationBodyThe ArticulationBody of the collider that was hit. If the collider is not attached to an articulation body then it is null.
barycentricCoordinateヒットした三角形の重心座標
colliderヒットしたコライダー
distanceレイの原点から衝突点までの距離
lightmapCoord衝突点の UV ライトマップ座標
normalレイがヒットしたサーフェスの法線
pointレイがコライダーにヒットした位置 (ワールド空間)。
rigidbodyヒットしたコライダーの Rigidbody。コライダーに Rigidbody がアタッチされていない場合は null になります。
textureCoordThe uv texture coordinate at the collision location.
textureCoord2衝突したセカンダリ UV テクスチャの座標
transform衝突したコライダーまたは Rigidbody の Transform
triangleIndex衝突したメッシュの三角形におけるインデックス