Language
Edit

RayStep.CopyRay(Ray, Single) Method

Definition

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.

Applies to