From 717a77305f38a348f02a40e352079ea2281f4290 Mon Sep 17 00:00:00 2001 From: Vito Meznaric Date: Fri, 20 Sep 2019 15:22:15 +0100 Subject: [PATCH] fix: use clearanceCheckMask when checking for hand overlap --- Assets/SteamVR/InteractionSystem/Core/Scripts/HandPhysics.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/SteamVR/InteractionSystem/Core/Scripts/HandPhysics.cs b/Assets/SteamVR/InteractionSystem/Core/Scripts/HandPhysics.cs index 8713b5c1..d3620b7c 100644 --- a/Assets/SteamVR/InteractionSystem/Core/Scripts/HandPhysics.cs +++ b/Assets/SteamVR/InteractionSystem/Core/Scripts/HandPhysics.cs @@ -101,7 +101,7 @@ private void UpdatePositions() if (!collisionsEnabled) { clearanceBuffer[0] = null; - Physics.OverlapSphereNonAlloc(hand.objectAttachmentPoint.position, collisionReenableClearanceRadius, clearanceBuffer); + Physics.OverlapSphereNonAlloc(hand.objectAttachmentPoint.position, collisionReenableClearanceRadius, clearanceBuffer, clearanceCheckMask); // if we don't find anything in the vicinity, reenable collisions! if (clearanceBuffer[0] == null) { @@ -234,4 +234,4 @@ Quaternion ProcessRot(int boneIndex, Quaternion rot) } -} \ No newline at end of file +}