RayCastInput

constructor(origin: Vec2, translation: Vec2, maxFraction: Float = 1.0f)

Parameters

origin

Start point of the ray

translation

Translation of the ray (direction and length)

maxFraction

The maximum fraction of the translation to consider (typically 1.0)