I've tried to searching for the answer, but I couldn't seem to find anything. I need to know how to program it such that my swing animation causes damage. OnTriggerEnter doesn't seem to do anything, although I'm sure I'm doing it wrong. The "enemy" object has a rigidbody, and its collider is a trigger. Also when I check gravity and it falls through the floor the collision works. But when I run into the enemy with my player, which has a collider, nothing happens. Please help.
↧