Ctrl+K

RayCastInput

Declaration

public struct tainicom.Aether.Physics2D.Collision.RayCastInput

Ray-cast input data.

Fields

MaxFraction

The ray extends from p1 to p1 + maxFraction * (p2 - p1). If you supply a max fraction of 1, the ray extends from p1 to p2. A max fraction of 0.5 makes the ray go from p1 and half way to p2.

float MaxFraction

Point1

The starting point of the ray.

Vector2 Point1

Point2

The ending point of the ray.

Vector2 Point2