Plane.Raycast Manual     Reference     Scripting  
Scripting > Runtime Classes > Plane
Plane.Raycast

function Raycast (ray : Ray, out enter : float) : bool

Description

Intersects a ray with the plane.

This function sets enter to the distance along the ray, where it intersects the plane. If the ray is parallel to the plane, function returns false and sets enter to zero.