API reference
API reference
Select your platform
No SDKs available
No versions available

HitTest< TProjectile, TCandidate, TResult > Function

A delegate for performing a hit-test.

Signature

delegate bool Oculus.Interaction.HitTest< TProjectile, TCandidate, TResult >(TProjectile projectile, TCandidate candidate, out TResult result)

Parameters

projectile: TProjectile The object/shape to cast against the candidate .
candidate: TCandidate The object to check if it's intersected by the projectile .
result: out TResult The result (e.g. position, normal, etc.) of the hit test.

Returns

delegate bool True if the candidate is intersected by the projectile , otherwise false.