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.Physics
    Syntax
    public struct RaycastInput

    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 float3 End { get; set; }
    Property Value
    Type Description
    float3

    Start

    The Start position of a Ray.

    Declaration
    public float3 Start { get; set; }
    Property Value
    Type Description
    float3

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use