編輯

共用方式為


DefaultRaycastProvider.SphereCast Method

Definition

Performs a sphere cast with the specified RayStep and radius.

public:
 virtual 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
override this.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.

Implements

Applies to