Version: 2017.1

Ray

struct in UnityEngine

Switch to Manual

Description

Representation of rays.

Луч - это линия бесконечной длины, начинающаяся в origin и идущая в направлении direction.

Variables

directionНаправление луча.
originThe origin point of the ray.

Constructors

RayCreates a ray starting at origin along direction.

Public Functions

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