Struct AnyHitCollector<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct AnyHitCollector<T>

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

    Constructors

    AnyHitCollector(Single)

    Declaration
    public AnyHitCollector(float maxFraction)
    Parameters
    Type Name Description
    System.Single maxFraction

    Properties

    EarlyOutOnFirstHit

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

    MaxFraction

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

    NumHits

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

    Methods

    AddHit(T)

    Declaration
    public bool AddHit(T hit)
    Parameters
    Type Name Description
    T hit
    Returns
    Type Description
    System.Boolean
    Implements
    ICollector<T>.AddHit(T)

    TransformNewHits(Int32, Single, Math.MTransform, Int32)

    Declaration
    public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, int rigidBodyIndex)
    Parameters
    Type Name Description
    System.Int32 oldNumHits
    System.Single oldFraction
    Math.MTransform transform
    System.Int32 rigidBodyIndex
    Implements
    ICollector<T>.TransformNewHits(Int32, Single, Math.MTransform, Int32)

    TransformNewHits(Int32, Single, Math.MTransform, UInt32, UInt32)

    Declaration
    public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, uint numSubKeyBits, uint subKey)
    Parameters
    Type Name Description
    System.Int32 oldNumHits
    System.Single oldFraction
    Math.MTransform transform
    System.UInt32 numSubKeyBits
    System.UInt32 subKey
    Implements
    ICollector<T>.TransformNewHits(Int32, Single, Math.MTransform, UInt32, UInt32)
    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