|
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
(comments are locked)
|
|
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. Hmm, that sounds absolutely correct, but making those adjustments in my situation didn't work. But your answer IS correct so I'm going to mark it. Something else that did end up working was to leave the sword as non-kinematic and no-gravity, while turning all of the position and rotation constraints.
Sep 16 '11 at 01:07 AM
Capn J
(comments are locked)
|
