- Home /
Random.insideUnitCircle ignores collisions
So I'm trying to make some balls that randomly move around within, preferably a square but a circle is ok if need be. Initially I was trying to code this but epically failed as I just had a ball that hit the side and sat there instead of reflecting at a mirrored angle. But then I found Random.insideUnitCircle which works - kind of - but I found that my balls, which there are a lot of, didn't collide with each other. I tested with OnCollisionEnter2D, providing a Debug.log message when the balls hit which showed up however they still didn't collide- they all have circle colliders on.
Any help will be VERY much appreciated!!
You don't provide enough infomations, I think we will need to see your ball gameobjects.
Your answer
Follow this Question
Related Questions
Perlin Noise Questions 1 Answer
Random Terrain in 2d Game? 0 Answers
2d obstacle moving up and down question 1 Answer
I want to set a random rotation with Random.Range, but its adding constantly [2D] 1 Answer
How to create random movement in 2d 2 Answers