Cast Output
data class CastOutput(val normal: Vec2, val point: Vec2, val fraction: Float, val iterations: Int, val hit: Boolean)
Low-level ray cast or shape cast output data.
Parameters
normal
The surface normal at the hit point
point
The surface hit point
fraction
The fraction of the input translation at collision
iterations
The number of iterations used
hit
Did the cast hit?