Plane.Raycast 光线投射

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


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.

这个函数设置out enter沿着射线,相交平面的距离,如果该射线是平行于平面,函数返回false,并且设置out enter到0。

Page last updated: 2011-1-18