q5play
    Preparing search index...

    Class CastInfo

    Index
    distance: number

    The distance from the start of the cast to the intersection point.

    sprite: Sprite

    The sprite that was hit by the ray or circle cast.

    • get intersect(): { x: number; y: number }

      The intersection point of the cast with the sprite's shape.

      Returns { x: number; y: number }