Answer by Mike 3
Try DestroyImmediate instead of Destroy - it could be that your other object is hanging around for two fixedupdates before being deleted (which is feasible - you get 0 to lots of fixed updates every...
View ArticleAnswer by jc_lvngstn
Just disable the pellet collider when you eat it, boom no more collisions and it will eventually get destroyed. I don't have Unity if front of me, but it should be something along the lines of...
View ArticleAnswer by karl_
Instead of using OnControllerColliderHit try an OnTriggerEnter or OnCollisionEnter. This will ensure that your if statement is only called once.
View ArticleAnswer by Mike 3
Try DestroyImmediate instead of Destroy - it could be that your other object is hanging around for two fixedupdates before being deleted (which is feasible - you get 0 to lots of fixed updates every...
View ArticleAnswer by jc_lvngstn
Just disable the pellet collider when you eat it, boom no more collisions and it will eventually get destroyed. I don't have Unity if front of me, but it should be something along the lines of...
View ArticleAnswer by karl_
Instead of using OnControllerColliderHit try an OnTriggerEnter or OnCollisionEnter. This will ensure that your if statement is only called once.
View Article
More Pages to Explore .....