RayCastHelper

Constructor in RayCastHelper

RayCastHelper(float, float)

The length of the ray and the step size must be given here. The smaller the step size, the greater the accuracy.

Declaration

public RayCastHelper(float rayLength, float rayStepSize = 2)

Parameters

rayLength

Length of the ray.

rayStepSize

Size of the step. With length the number of steps is computed.