Ray Information
fun RayInformation(b: TranslatableBody, x: Double, y: Double, index: Int)
Content copied to clipboard
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.
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.