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.

    Implements
    IQueryInput
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.U2D.Entities.Physics
    Assembly: solution.dll
    Syntax
    public struct RaycastInput : IQueryInput

    Fields

    Name Description
    Filter

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

    Properties

    Name Description
    Default
    End

    The End position of a Ray.

    Ignore

    Optional control of a specific PhysicsBody to ignore.

    Ray
    Start

    The Start position of a Ray.

    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)