Ray cast input data.

Constructors

Properties

Constructors

  • Creates a new ray cast input.

    Parameters

    • Optionalp1: b2Vec2

      Start point of the ray, default = null.

    • Optionalp2: b2Vec2

      End point of the ray, default = null.

    • OptionalmaxFraction: number

      Truncate the ray to reach up to this fraction from p1 to p2.

    Returns b2RayCastInput

Properties

maxFraction: number

Truncate the ray to reach up to this fraction from p1 to p2

p1: b2Vec2

The start point of the ray.

p2: b2Vec2

The end point of the ray.