Download

Object interaction with raycasting

I have a shelf with 3 drawers which I would like to open individually.

5bb1c1b46f8210a8e9b0e7b9eab8019a7e70cbeb.jpeg

I created a an interactive key that raycasts, the E Key, and have made the animation for the top drawer. It opens when you click anywhere on the dresser object, so I’m having trouble getting the animation to play only when the particular drawer or collision box of the same shape (If I even need that) is clicked on. My blueprint so far;

dee97ab3f82fd4329b1f85b5b2aa7bb6d6076bf7.jpeg

Once I figure out how to make it play only when the drawer is clicked I think I can figure out how to do the other two… any help would be appreciated, thanks! -j

I can’t see how you have your interact key setup. That is really where the magic is happening. Can you add that image?