[7th-Dev 8/14/20] Ball Game
So I’m trying to make just a standard game using what I know so far in Unity’s code engine, which...isn’t much. The Idea is to move a square around a small plane and push these balls into a hole in the ground. When all the balls are in the hole, you win! Yesterday I ran into some issues where when I went to go create the code to count the balls that are in the hole. I found that selecting the Trigger-Collision box made all the balls fall out of the map, and what’s worse, they were no longer able to be pushed around! I looked for help online, but couldn’t find anything. You see, for some reason, selecting Trigger Collision in the Sphere Collision in the inspector, it makes the object intangible to the player?? I don’t know. Well... Today I asked on a discord server, and got some great help. Here’s what I found. You can give a 3d object multiple collision boxes! One of them can be set to Trigger Collision, and the other is not a trigger. They work together, and the one that’s not a trigger holds the 3D object on the plane. It might not be the best way to do it, but It’s a quick fix that I hope pans out for me when I get to coding tomorrow.













