I’ve been working on a few items, the most recent of which has been lootable chests that have open and close animations and audio. The animations and audio part are not something I have a lot of experience with, but the chest is thankfully fairly simple.
Right now I’ve defined a very specific Chest Controller, though I suspect I will transform this into a Usable Object Controller that will take an enum of it’s usability type (for environmental objects) like open/close, on/off, pick or gather (for reagents) and the like. The video above is super simple, and is still a WIP.
Currently, the player will interact simultaneously with every interactable object within a radius. The next step is to raycast or use a hidden collider to find the object most centered in front of the player and prevent interactions with objects behind the player.
It’s a start.