Struct TPC_RaycasHitsCollector
Implements
ICollector<RaycastHit>
Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: DOTS_TPC
Assembly: DOTS-TPC.dll
Syntax
public struct TPC_RaycasHitsCollector : ICollector<RaycastHit>
Constructors
TPC_RaycasHitsCollector(Entity, float3)
Declaration
public TPC_RaycasHitsCollector(Entity targetEntity, float3 raycastDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | targetEntity | |
| float3 | raycastDirection |
Fields
ClosestHit
Declaration
public RaycastHit ClosestHit
Field Value
| Type | Description |
|---|---|
| RaycastHit |
Properties
EarlyOutOnFirstHit
Declaration
public readonly bool EarlyOutOnFirstHit { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
MaxFraction
Declaration
public readonly float MaxFraction { get; }
Property Value
| Type | Description |
|---|---|
| Single |
NumHits
Declaration
public int NumHits { readonly get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
AddHit(RaycastHit)
Declaration
public bool AddHit(RaycastHit hit)
Parameters
| Type | Name | Description |
|---|---|---|
| RaycastHit | hit |
Returns
| Type | Description |
|---|---|
| Boolean |
Implements
Unity.Physics.ICollector<T>