Struct RaycastInput | 2D Entities | 0.29.0-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    Struct RaycastInput

    The input to RayCastQueries consists of the Start and End positions of a line segment as well as a CollisionFilter to cull potential hits.

    Namespace: Unity.U2D.Entities.Physics
    Syntax
    public struct RaycastInput : IQueryInput

    Fields

    Filter

    The CollisionFilter is used to determine what objects the Ray is and isn't going to hit.

    Declaration
    public CollisionFilter Filter
    Field Value
    Type Description
    CollisionFilter

    Properties

    End

    The End position of a Ray.

    Declaration
    public float2 End { get; set; }
    Property Value
    Type Description
    Unity.Mathematics.float2

    Ignore

    Optional control of a specific PhysicsBody to ignore.

    Declaration
    public IgnoreHit Ignore { get; set; }
    Property Value
    Type Description
    IgnoreHit
    Implements
    IQueryInput.Ignore

    Ray

    Declaration
    public Ray Ray { get; }
    Property Value
    Type Description
    Ray

    Start

    The Start position of a Ray.

    Declaration
    public float2 Start { get; set; }
    Property Value
    Type Description
    Unity.Mathematics.float2
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 26 August 2020