Scripting API

RaycastHit

struct in UnityEngine · UnityEngine.PhysicsModule

8 of 13 of Unity's membersUnity's documentation
In Tassix

A raycast or sweep hit.

Properties 9

Vector3 barycentricCoordinate { get; }
Collider collider { get; }
int colliderInstanceID { get; }
float distance { get; set; }
Vector3 normal { get; set; }
Vector3 point { get; set; }
Rigidbody? rigidbody { get; }
Transform? transform { get; }
int triangleIndex { get; }

Not in Tassix yet 5

articulationBody colliderEntityId lightmapCoord textureCoord textureCoord2