docs.unity3d.com
Search Results for

    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.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    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 ending position of a Ray.

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

    The ending position of a ray.

    Start

    The starting position of a Ray.

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

    The starting position of a Ray.

    Methods

    ToString()

    Convert this object into a string representation.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents this object.

    Overrides
    ValueType.ToString()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)