Version: 2017.1

Ray

struct in UnityEngine

Cambiar al Manual

Descripción

Representation of rays.

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

Variables

directionLa dirección del rayo.
originEl punto de origen del rayo.

Constructores

RayCreates a ray starting at origin along direction.

Funciones Públicas

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