Struct ClosestHitCollector<T> | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ClosestHitCollector<T>

    Namespace: Unity.Physics
    Syntax
    public struct ClosestHitCollector<T> : ICollector<T> where T : struct, IQueryResult
    Type Parameters
    Name Description
    T

    Constructors

    ClosestHitCollector(Single)

    Declaration
    public ClosestHitCollector(float maxFraction)
    Parameters
    Type Name Description
    Single maxFraction

    Properties

    ClosestHit

    Declaration
    public T ClosestHit { get; }
    Property Value
    Type Description
    T

    EarlyOutOnFirstHit

    Declaration
    public bool EarlyOutOnFirstHit { get; }
    Property Value
    Type Description
    Boolean
    Implements
    ICollector<T>.EarlyOutOnFirstHit

    MaxFraction

    Declaration
    public float MaxFraction { get; }
    Property Value
    Type Description
    Single
    Implements
    ICollector<T>.MaxFraction

    NumHits

    Declaration
    public int NumHits { get; }
    Property Value
    Type Description
    Int32
    Implements
    ICollector<T>.NumHits

    Methods

    AddHit(T)

    Declaration
    public bool AddHit(T hit)
    Parameters
    Type Name Description
    T hit
    Returns
    Type Description
    Boolean
    Implements
    ICollector<T>.AddHit(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