MixedRealityRaycaster.RaycastBoxPhysicsStep Method

Definition

Box raycasts each physics RayStep.

public:
 static bool RaycastBoxPhysicsStep(Microsoft::MixedReality::Toolkit::Physics::RayStep step, UnityEngine::Vector3 extents, UnityEngine::Vector3 targetPosition, UnityEngine::Matrix4x4 matrix, float maxDistance, cli::array <UnityEngine::LayerMask> ^ prioritizedLayerMasks, int raysPerEdge, bool isOrthographic, bool focusIndividualCompoundCollider, [Runtime::InteropServices::Out] cli::array <UnityEngine::Vector3> ^ % points, [Runtime::InteropServices::Out] cli::array <UnityEngine::Vector3> ^ % normals, [Runtime::InteropServices::Out] cli::array <bool> ^ % hits);
public static bool RaycastBoxPhysicsStep (Microsoft.MixedReality.Toolkit.Physics.RayStep step, UnityEngine.Vector3 extents, UnityEngine.Vector3 targetPosition, UnityEngine.Matrix4x4 matrix, float maxDistance, UnityEngine.LayerMask[] prioritizedLayerMasks, int raysPerEdge, bool isOrthographic, bool focusIndividualCompoundCollider, out UnityEngine.Vector3[] points, out UnityEngine.Vector3[] normals, out bool[] hits);
static member RaycastBoxPhysicsStep : Microsoft.MixedReality.Toolkit.Physics.RayStep * UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Matrix4x4 * single * UnityEngine.LayerMask[] * int * bool * bool * Vector3[] * Vector3[] * Boolean[] -> bool
Public Shared Function RaycastBoxPhysicsStep (step As RayStep, extents As Vector3, targetPosition As Vector3, matrix As Matrix4x4, maxDistance As Single, prioritizedLayerMasks As LayerMask(), raysPerEdge As Integer, isOrthographic As Boolean, focusIndividualCompoundCollider As Boolean, ByRef points As Vector3(), ByRef normals As Vector3(), ByRef hits As Boolean()) As Boolean

Parameters

step
RayStep
extents
UnityEngine.Vector3
targetPosition
UnityEngine.Vector3
matrix
UnityEngine.Matrix4x4
maxDistance
Single
prioritizedLayerMasks
UnityEngine.LayerMask[]
raysPerEdge
Int32
isOrthographic
Boolean
focusIndividualCompoundCollider
Boolean
points
UnityEngine.Vector3[]
normals
UnityEngine.Vector3[]
hits
Boolean[]

Returns

Whether or not the raycast hit something.

Applies to