If You Are Having Issues, I Have a Theory

I think that the ball has to be touching both colliders at the same time for the if statement in the SecondaryTrigger.cs script to work. So if you place your Secondary Trigger too far below the Primary Trigger, then your game will not detect scoring.

I’m not 100% on this, but if @sampattuzzi can clarify this it would be much appreciated.

And if this is true, then it is a flawed solution because people can score by shooting the ball under the hoop and as long as the ball hits both colliders then it will score. If not, then I have no idea why my scorekeeping is not consistently working.

I don’t think so. We record which collider we are expecting so it should matter is it’s still hitting or not. You could construct a test scene in your project to test the hypothesis.

Place a ball above a primary then secondary trigger. You can adjust the distances, you can also put the triggers the other way round to check you can’t score backwards.

1 Like

Privacy & Terms