docs.unity3d.com
    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
    In This Article
    • Fields
      • Filter
    • Properties
      • End
      • Start
    • Methods
      • ToString()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023