RayCastHelper#

Class in WaveHarmonic.Crest, WaveHarmonic.Crest

Helper to trace a ray against the water surface.

Works by sampling at a set of points along the ray and interpolating the intersection location.

Members#

Constructors#

RayCastHelper

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

Methods#

RayCast

Call this once each frame to do the query.