Ray

struct in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Description

Representation of rays.

A ray is an infinite line starting at origin and going in some direction.

Properties

Property Description
directionThe direction of the ray.
originThe origin point of the ray.

Constructors

Constructor Description
RayCreates a ray starting at origin along direction.

Public Methods

Method Description
GetPointReturns a point at distance units along the ray.
ToStringReturns a formatted string for this ray.

Did you find this page useful? Please give it a rating: