ontriggerenter and oncollisionenter difference
OnTriggerEnter - Is called whenever an object with a collider has passed through an object with an "isTrigger" checked collider. ... OnCollisionEnter - Is called whenever an object with a collider has collided with another object that contains a collider.