So I am trying to get the drop setting of an interaction machine to work but I have been having no luck. I am using Unity 2021.3.1f1. Here are my settings:
I have a first person camera controller setup and the item drops from my inventory and lands on the collider just fine.
Here is the game object:
Any help would be much appreciated, thanks!
I have my dropped item tagged as an itemObject and am using the following schematic on trigger enter and exit of the pressure plate:
The basic logic is check if an itemObject triggered the pressure plate, if so negate the variable itemPlacedOnTop (setting it to true for the first time you put an item on top) then run the basic code for negating/setting the booleans that open the door in front of it when they are set to true.
The only problem I am running into is that OnTriggerExit isn't called when I picked up the rock from the ground. Trigger enter works fine but not trigger exit, causing itemPlacedOnTop to never negate keeping the door always open even when you remove the item.
Does this have something to do with mesh colliders in Unity or is this potentially a bug? I am writing this as I am still working on it. Just making an update to show where I am at.