Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How do I detect collision between colliders?

$
0
0
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.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>