Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1484,12 +1484,20 @@ public bool IsGrabEnding(GameObject attachedObject)
{
if (attachedObjects[attachedObjectIndex].attachedObject == attachedObject)
{
return IsGrabbingWithType(attachedObjects[attachedObjectIndex].grabbedWithType) == false;
if ((attachedObjects[attachedObjectIndex].attachmentFlags & AttachmentFlags.AllowSidegrade) != 0)
return IsGrabbing() == false;
else
return IsGrabbingWithType(attachedObjects[attachedObjectIndex].grabbedWithType) == false;
}
}

return false;
}

public bool IsGrabbing()
{
return IsGrabbingWithType(GrabTypes.Grip) || IsGrabbingWithType(GrabTypes.Pinch);
}

public bool IsGrabbingWithType(GrabTypes type)
{
Expand Down