- Home /
how do i Prevent Collider/trigger from picking up Go.Tag?
I have a turret/ sentry gun in my game & it is tagged as an Enemy. There is 2 colliders on the object, one is a trigger. How do i make it so only the solid collider is detected by my weapons script through Raycast?
if(hit.transform.CompareTag("Enemy")){ }
Comment