Structure used to get information back from a raycast.
See Also: Physics.Raycast, Physics.Linecast, Physics.RaycastAll.
barycentricCoordinate | Las coordenadas del baricentro del triángulo con el que chocamos. |
collider | El Collider que fue alcanzado. |
distance | La distancia desde el origen del rayo hasta el punto de impacto. |
lightmapCoord | The uv lightmap coordinate at the impact point. |
normal | La normal de la superficie contra la que impactó el rayo. |
point | The impact point in world space where the ray hit the collider. |
rigidbody | The Rigidbody of the collider that was hit. If the collider is not attached to a rigidbody then it is null. |
textureCoord | The uv texture coordinate at the impact point. |
textureCoord2 | The secondary uv texture coordinate at the impact point. |
transform | The Transform of the rigidbody or collider that was hit. |
triangleIndex | The index of the triangle that was hit. |