- Home /
how to make an animated object interact with a rigidbody?
I have a door which opens and closes via animation. When I place a crate (a cube with a box collider and a rigidbody) in front of the door and play it's animation, the door just passes through the crate and no collision takes place. I'd like the crate to be moved by the animated door, I know that it's obviously because rigidbodies and animation don't go well together but what is the best route to take here? should I move the door via code or will that end up with the same results?
Thanks for any help.
Answer by BasementGameDevelopers · Feb 03, 2020 at 02:33 AM
@Blakemprods Add a collider on the door.
It has one, the door still passes through the crates collier. The collider works when it isn't moving, ie when the door is closed or when it is open and not moving, but when its playing the open or close animation it ignores the crate, though it does still move the player.
Your answer
Follow this Question
Related Questions
Ultimate Attack Animation 1 Answer
Export Animations From Unity3D into Blender? 1 Answer
How to stop an animation on collision 0 Answers
Ragdoll with multiple colliders 0 Answers
Character is not Colliding despite having a Box Collider and Rigidbody 0 Answers