HitTestAll< TProjectile, TCandidate, TResult, TComparer >
(
projectile
, candidates
, hitTest
, resultsToPopulate
, comparer
)
|
Performs a hit-test with the provided projectile against the given set of candidates and returns the results sorted based on the defined comparer .
Signature
static void Oculus.Interaction.HitTester.HitTestAll< TProjectile, TCandidate, TResult, TComparer >(TProjectile projectile, List< TCandidate > candidates, HitTest< TProjectile, TCandidate, TResult > hitTest, List< TResult > resultsToPopulate, TComparer comparer) Parameters projectile: TProjectile
The projectile shape (e.g. cone) to cast.
candidates: List< TCandidate >
The set of objects to hit test.
hitTest: HitTest< TProjectile, TCandidate, TResult >
The hit-test implementation used to determine if the candidate is intersected by the given projectile .
resultsToPopulate: List< TResult >
The list to populate with the sorted results.
comparer: TComparer
The compare implementation used to determine which of two given results is a "better" or "higher priority" result. This is how the results are sorted.
Returns void |
TryComputeBest< TProjectile, TTarget, TResult, TComparer >
(
projectile
, candidates
, hitTestImpl
, comparer
, bestResult
)
|
Performs an intersection test between the projectile and set of candidates and returns the best intersection result based on the defined comparer .
Signature
static bool Oculus.Interaction.HitTester.TryComputeBest< TProjectile, TTarget, TResult, TComparer >(TProjectile projectile, List< TTarget > candidates, HitTest< TProjectile, TTarget, TResult > hitTestImpl, TComparer comparer, out TResult bestResult) Parameters projectile: TProjectile
The projectile to cast against the set of interactables.
candidates: List< TTarget >
The set of objects that can be "hit" by the projectile .
hitTestImpl: HitTest< TProjectile, TTarget, TResult >
The hit test implementation used to determine if a candidate is intersected by the given projectile .
comparer: TComparer
The compare implementation used to determine which of two given results is a "better" or "higher priority" result. This is how the results are sorted.
bestResult: out TResult
The first result in the sorted list of intersected candidates, if it exists.
Returns bool
True if one or more candidates is intersected by the projectile .
|