I am casting a ray from bullet that hits a Block. The block has a script with the OnTriggerEnter2D function, when the ray hits the block the OnTriggerEnter2D function isn’t called… Is there anything wrong here or am I taking the concept of “Raycasts Hit Trigger” wrongly?
RaycastHit doesn’t make collision, Collider does, so if two colliders touch the OnTriggerEnter2D is called
you can get the collider you raycasted if it’s in RaycastHit object and call it’s method directly