Ray

struct in UnityEngine

매뉴얼로 전환

설명

Representation of rays.

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

변수

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

생성자

RayCreates a ray starting at origin along direction.

Public 함수

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