Struct ClosestHitCollector<T>
A collector which stores only the closest hit.
Implements
ICollector<T>
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public struct ClosestHitCollector<T> : ICollector<T> where T : struct, IQueryResult
Type Parameters
Name | Description |
---|---|
T | Generic type parameter. |
Constructors
Name | Description |
---|---|
ClosestHitCollector(float) | Constructor. |
Properties
Name | Description |
---|---|
ClosestHit | Gets the closest hit. |
EarlyOutOnFirstHit | Gets a value indicating whether the early out on first hit. |
MaxFraction | Gets or sets the maximum fraction. |
NumHits | Gets the number of hits. |
Methods
Name | Description |
---|---|
AddHit(T) | Adds a hit. |