Player still ignoring enemy soldier

Expected behavior: Player attacks enemy character generated with new prefab variant in the same way that it attacked the enemy target capsule.

Actual behavior: Player will still attack a target capsule, but will ignore the enemy soldier.

What I’ve tried: I generated the prefab variants as per the lecture, and then attempted to modify the prefab variants accordingly. Screenshot of the inspector for the enemy prefab variant is included.

EDIT: I doubled the radius and the height to 1 and 2, respectively, and now it’s working. I’m assuming this expanded the clickable area so that the click interacts with the collider rather than the collider being inside something else that’s taking the click instead.

I’m glad you found the solution. :slight_smile:


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.