![]() What could be done to prevent the ball from escaping? Of course I have not left any "holes" between the collider boxes to let the ball escape. I currently have it running in iOS if that matters any. Only thing left to do is shut down and restart the app. It could take a while of maybe playing the game for 10-15 minutes or more, but sometimes the ball just goes shooting straight out the collider boxes. All objects have a bounce material on them. I have a limit on the x velocity to try to keep the ball moving in y position mostly this way if the ball hits the wall it simply shots back down as opposed to shooting across to the left or right. So ball hits paddle, goes bouncing up, hits a wall or ceiling, goes back bouncing down, hit paddle, goes back up then back down, and ball hits paddle level restarts. Simple polygon collider that acts as a paddle and is movable on the x axis over the restart box 4 rectangular colliders - One at the top, one on the left, one on the right, and one at the bottom that acts as a level restartĢ. So I have a simple game that feels like my bouncing ball sometimes escapes past collider boxes. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |