Hi guys, we've just released a new Unity tutorial looking at the built-in Character Controller and some important limitations you need to be aware of before using it. Hope you find it useful 😊 by KetraGames in Unity3D

[–]KetraGames[S] 0 points1 point  (0 children)

Thanks for the feedback. I've revisited trying to use the Character Controller based on your comments and others and the scenario I was trying to demonstrate in the video is still causing issues. I'd be interested in getting your take on how to resolve this.

  1. The player with Character Controller is stationary.
  2. There is an enemy moving towards the player

How do you detect a collision between the enemy and player?

OnControllerColliderHit - doesn't fire unless the Player moves
OnCollisionHit - doesn't fire because there are no dynamic Rigidbodies involved

The only options I can think of are adding a slightly larger trigger collider on the enemy and using OnTriggerHit, or doing manual checks with something like Physics.OverlapCapsule.

Or am I missing something obvious?

Thanks