- Home /
Question by
Disastercake · Dec 08, 2012 at 04:08 AM ·
triggerontriggerentercharacter controllerprojectile
How do you get a moving trigger collider to trigger OnTriggerEnter if the CharacterCollider is not moving?
In a game I am working on, I have projectiles. The projectiles are just Sphere Colliders that are set to Is Trigger = true. I am using character controllers for all NPCs and the player.
If one of the character controllers moves into the trigger, then it will go off correctly.
However, if the projectile is moving, and the character controller is not moving, then it will not register OnTriggerEnter and the projectile will just fly on through. How do I deal with this situation?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613085124im_/https://answers.unity.com/themes/thub/images/avi.jpg)