@studiokeywi/banjo - v0.0.1
    Preparing search index...

    Function castRayAtLine

    • Casts a ray at a line and determines if there is an intersection

      Parameters

      • rayStart: Vector2

        Origin of the ray

      • direction: Vector2

        Direction of the ray

      • p1: Vector2

        First point of the line

      • p2: Vector2

        Second point of the line

      • Optionaltarget: number

        Minimum distance that must be met to return a result

      • Optionalintersection: Intersection

        Optional Intersection object to contain information about the result

      Returns boolean

      Whether there was an intersection or not