- Home /
Activating animation by a moving trigger
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.
Your answer
Follow this Question
Related Questions
OnTriggerEnter2d() Not Triggering While Animating. 1 Answer
Trigger animtaion when hit 1 Answer
Collider Activate Trigger Animation 0 Answers
Inconsistent behaviour in child triggers 1 Answer
Trigger animation going crazy 3 Answers