Class QueryWrappers | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class QueryWrappers

    Inheritance
    System.Object
    QueryWrappers
    Namespace: Unity.Physics
    Syntax
    public static class QueryWrappers

    Methods

    CalculateDistance<T>(ref T, ColliderDistanceInput)

    Declaration
    public static bool CalculateDistance<T>(ref T target, ColliderDistanceInput input)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    ColliderDistanceInput input
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    CalculateDistance<T>(ref T, ColliderDistanceInput, ref NativeList<DistanceHit>)

    Declaration
    public static bool CalculateDistance<T>(ref T target, ColliderDistanceInput input, ref NativeList<DistanceHit> allHits)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    ColliderDistanceInput input
    NativeList<DistanceHit> allHits
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    CalculateDistance<T>(ref T, ColliderDistanceInput, out DistanceHit)

    Declaration
    public static bool CalculateDistance<T>(ref T target, ColliderDistanceInput input, out DistanceHit result)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    ColliderDistanceInput input
    DistanceHit result
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    CalculateDistance<T>(ref T, PointDistanceInput)

    Declaration
    public static bool CalculateDistance<T>(ref T target, PointDistanceInput input)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    PointDistanceInput input
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    CalculateDistance<T>(ref T, PointDistanceInput, ref NativeList<DistanceHit>)

    Declaration
    public static bool CalculateDistance<T>(ref T target, PointDistanceInput input, ref NativeList<DistanceHit> allHits)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    PointDistanceInput input
    NativeList<DistanceHit> allHits
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    CalculateDistance<T>(ref T, PointDistanceInput, out DistanceHit)

    Declaration
    public static bool CalculateDistance<T>(ref T target, PointDistanceInput input, out DistanceHit result)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    PointDistanceInput input
    DistanceHit result
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    ColliderCast<T>(ref T, ColliderCastInput)

    Declaration
    public static bool ColliderCast<T>(ref T target, ColliderCastInput input)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    ColliderCastInput input
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    ColliderCast<T>(ref T, ColliderCastInput, ref NativeList<ColliderCastHit>)

    Declaration
    public static bool ColliderCast<T>(ref T target, ColliderCastInput input, ref NativeList<ColliderCastHit> allHits)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    ColliderCastInput input
    NativeList<ColliderCastHit> allHits
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    ColliderCast<T>(ref T, ColliderCastInput, out ColliderCastHit)

    Declaration
    public static bool ColliderCast<T>(ref T target, ColliderCastInput input, out ColliderCastHit result)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    ColliderCastInput input
    ColliderCastHit result
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    RayCast<T>(ref T, RaycastInput)

    Declaration
    public static bool RayCast<T>(ref T target, RaycastInput input)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    RaycastInput input
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    RayCast<T>(ref T, RaycastInput, ref NativeList<RaycastHit>)

    Declaration
    public static bool RayCast<T>(ref T target, RaycastInput input, ref NativeList<RaycastHit> allHits)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    RaycastInput input
    NativeList<RaycastHit> allHits
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    RayCast<T>(ref T, RaycastInput, out RaycastHit)

    Declaration
    public static bool RayCast<T>(ref T target, RaycastInput input, out RaycastHit closestHit)
        where T : struct, ICollidable
    Parameters
    Type Name Description
    T target
    RaycastInput input
    RaycastHit closestHit
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T
    Back to top
    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