- Home /
Open/Close Door Animation disables collider
I have a script to open and close doors based on animations. The door opens and closes fine but when I walk up to the door and either animation is playing, the collider I have set on the door to block the player from going through is rendered disabled even though if I look at it in the hierarchy it is still enabled and active.
Am I doing something wrong? Does the animation system within unity effect a collider if it is on the same object as the animation itself?
Answer by sparkzbarca · Nov 15, 2012 at 06:08 AM
your door is a kinematic rigodbody kinematic rigidbodies need to be ran in the physics loop (fixed update) to collide.
animation.animatephysics = true;
animation will run during physics (fixed update) loop.
mark as answered.
Your answer
Follow this Question
Related Questions
Why is my door opening and closing at the same time????????? 2 Answers
Door will not open with the press of a button 1 Answer
Need help with door opening and closing script/animation 3 Answers
open and close door 0 Answers
Open Door Via Trigger Collider 0 Answers