RayStep.CopyRay(Ray, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copy the given ray structure to this raycast step, along with the specified length.
public void CopyRay(UnityEngine.Ray ray, float length);
member this.CopyRay : UnityEngine.Ray * single -> unit
Public Sub CopyRay (ray As Ray, length As Single)
Parameters
- ray
- UnityEngine.Ray
The ray to copy.
- length
- Single
The new length for this raycast step. The length or magnitude of the raycast step. This is the distance from the ray's origin to the terminus.