Bearbeiten

Freigeben über


IMixedRealityRaycastProvider.SphereCast Method

Definition

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

Returns

Whether or not the SphereCast hit something.

Applies to