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

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

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. If the ray is pointing in the opposite direction than the plane, function returns false and sets enter to the distance along the ray (negative value).