Options
All
  • Public
  • Public/Protected
  • All
Menu

Ray cast input data.

Hierarchy

  • b2RayCastInput

Index

Constructors

Properties

Constructors

  • Creates a new ray cast input.

    Parameters

    • Optional p1: b2Vec2

      Start point of the ray, default = null.

    • Optional p2: b2Vec2

      End point of the ray, default = null.

    • Optional maxFraction: 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.

Generated using TypeDoc