RayInformation

fun RayInformation(b: TranslatableBody, x: Double, y: Double, index: Int)

Constructor to store information about a ray intersection.

Parameters

b

Body involved with ray intersection.

x

x position of intersection.

y

y position of intersection.

index

Index of shapes side that intersection intersects.


fun RayInformation(b: TranslatableBody, v: Vec2, index: Int)

Convenience constructor equivalent to .RayInformation

Parameters

b

Body involved with ray intersection.

v

x/y position of intersection.

index

Index of shapes side that intersection intersects.