Hi everybody, I am pretty new to unity and its scripting language. I have a problem with colliders and triggers that concerns activating an animation for a game object or doing anything for a start. To my main camera there is a box collider attached that is placed in the middle of my field of view. This collider is defined as a trigger and schould activate an animation on other collider's object (also a box). Right now it doesn't do anything. Not even OnTriggerEnter() is called. The box has a rigid body component as well. Is there somebody who could help me with this?
The whole idea behind the script is to activate certain events with my field of view. If somebody has a different idea to share with me, please do so!
Thank you! J
Response: I have finally found a solution! The problem was that the camera has to be a rigid body and the trigger should be on the box, where the OnTriggerEnter is called. Then it works fine.