IMixedRealityRaycastProvider.SphereCast Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a sphere cast with the specified RayStep and radius.
public:
bool SphereCast(Microsoft::MixedReality::Toolkit::Physics::RayStep step, float radius, cli::array <UnityEngine::LayerMask> ^ prioritizedLayerMasks, bool focusIndividualCompoundCollider, [Runtime::InteropServices::Out] Microsoft::MixedReality::Toolkit::Input::MixedRealityRaycastHit % hitInfo);
public bool SphereCast (Microsoft.MixedReality.Toolkit.Physics.RayStep step, float radius, UnityEngine.LayerMask[] prioritizedLayerMasks, bool focusIndividualCompoundCollider, out Microsoft.MixedReality.Toolkit.Input.MixedRealityRaycastHit hitInfo);
abstract member SphereCast : Microsoft.MixedReality.Toolkit.Physics.RayStep * single * UnityEngine.LayerMask[] * bool * MixedRealityRaycastHit -> bool
Public Function SphereCast (step As RayStep, radius As Single, prioritizedLayerMasks As LayerMask(), focusIndividualCompoundCollider As Boolean, ByRef hitInfo As MixedRealityRaycastHit) As Boolean
Parameters
- step
- RayStep
- radius
- Single
- prioritizedLayerMasks
- UnityEngine.LayerMask[]
- focusIndividualCompoundCollider
- Boolean
- hitInfo
- MixedRealityRaycastHit
Returns
Whether or not the SphereCast hit something.