Ahoy! I'm having an issue detecting a collision driven by an enemy player. Below is the basic set-up:
Issue: When enemy animation swings sword, the collider (+ the script below) does not detect a collision (rigidbody projectiles seem to detect just fine)
Is there something to animated rigs with weapons attached to them don't detect quite right?
Thanks in advance CapnJ
Try adding a RigidBody set to Kinematic to the moving collider. If you don't do that, Unity physics will think both colliders are static and never check for them colliding. Setting the IsKinematic flag of the rigidbody basically tells Unity this collider is moved by script or animation, and to perform proper collision checks on it.
answered Sep 16 '11 at 12:00 AM