Struct TPC_LockOnCollector
Implements
ICollector<DistanceHit>
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_LockOnCollector : ICollector<DistanceHit>
Constructors
TPC_LockOnCollector(ComponentLookup<LocalTransform>, ComponentLookup<PhysicsCustomTags>, TPC_LockOnOptions, float3, float3, Single)
Declaration
public TPC_LockOnCollector(ComponentLookup<LocalTransform> localTransformLookup, ComponentLookup<PhysicsCustomTags> tagLookup, TPC_LockOnOptions lockOnOptions, float3 avatarPosition, float3 forward, float maxFraction)
Parameters
Type | Name | Description |
---|---|---|
ComponentLookup<LocalTransform> | localTransformLookup | |
ComponentLookup<PhysicsCustomTags> | tagLookup | |
TPC_LockOnOptions | lockOnOptions | |
float3 | avatarPosition | |
float3 | forward | |
Single | maxFraction |
Fields
TargetableCustomTag
Declaration
public const int TargetableCustomTag = 128
Field Value
Type | Description |
---|---|
Int32 |
targets
Declaration
public NativeList<TargetableWithDistance> targets
Field Value
Type | Description |
---|---|
NativeList<TargetableWithDistance> |
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(DistanceHit)
Declaration
public bool AddHit(DistanceHit hit)
Parameters
Type | Name | Description |
---|---|---|
DistanceHit | hit |
Returns
Type | Description |
---|---|
Boolean |
Implements
Unity.Physics.ICollector<T>