Cleaning a Puddle using the XR Socket Interactor

In this article, I will be demonstrating how to clean a puddle of water from the ground using a mop and a socket interactor.

First, I’ve created a “puddle” of water using a cylinder and adding a capsule collider to it with “is trigger” enabled.

Next, on the cylinder, I will add the XR Socket Interactor and I will make sure to create a new layer interaction mask for the Mop that will be cleaning this puddle. I don’t need the “Show Interactable Hover Mesh” enabled since I don’t want a preview of the mop to show when cleaning, especially since I am just going to use the Hover event.

Visit Now