Skip to content

Ray bindings

SDraw edited this page Jun 14, 2023 · 2 revisions

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

Constructor

  • object Ray(Vector3 origin = Vector3.zero, Vector3 direction = Vector3.zero)

Properties

  • direction: get/set, Vector3
  • origin: get/set, Vector3

Methods

  • float GetPoint(float distance)

Utility functions

  • bool IsRay(object obj): checks if object is type of Ray.