Skip to content

RaycastHit bindings

SDraw edited this page Jun 14, 2023 · 2 revisions

Refer to Unity's RaycastHit documentation for properties and methods description.

Constructor

  • object RaycastHit()

Properties

  • barycentricCoordinate: get/set, Vector3
  • collider: get, Collider
  • distance: get/set, float
  • lightmapCoord: get, Vector2
  • normal: get/set, Vector3
  • point: get/set, Vector3
  • rigidbody: get, Rigidbody
  • textureCoord: get, Vector2
  • textureCoord2: get, Vector2
  • transform: get, Transform
  • triangleIndex: get, integer

Utility functions

  • bool IsRaycastHit(object obj): checks if object is type of RaycastHit.