CastOutput

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?

Constructors

Link copied to clipboard
constructor(normal: Vec2, point: Vec2, fraction: Float, iterations: Int, hit: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val point: Vec2