Struct TPC_AllHitsCollector
Implements
ICollector<ColliderCastHit>
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_AllHitsCollector : ICollector<ColliderCastHit>
Constructors
TPC_AllHitsCollector(ComponentLookup<TPC_IgnoreTag>, PhysicsWorld, Entity, float3)
Declaration
public TPC_AllHitsCollector(ComponentLookup<TPC_IgnoreTag> ignoreTagLookup, PhysicsWorld physicsWorld, Entity targetEntity, float3 raycastDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| ComponentLookup<TPC_IgnoreTag> | ignoreTagLookup | |
| PhysicsWorld | physicsWorld | |
| Entity | targetEntity | |
| float3 | raycastDirection |
Fields
AllHits
Declaration
public NativeList<ColliderCastHit> AllHits
Field Value
| Type | Description |
|---|---|
| NativeList<ColliderCastHit> |
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 readonly int NumHits { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
AddHit(ColliderCastHit)
Declaration
public bool AddHit(ColliderCastHit hit)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderCastHit | hit |
Returns
| Type | Description |
|---|---|
| Boolean |
UpdateDirection(Single)
Declaration
public void UpdateDirection(float newDir)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | newDir |
Implements
Unity.Physics.ICollector<T>