q5play
    Preparing search index...

    Class CastInfo

    Index

    Constructors

    Properties

    Accessors

    Constructors

    Properties

    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.

    Accessors

    • get incidence(): number

      The angle of incidence of the cast at the intersection point.

      Returns number

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

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

      Returns { x: number; y: number }