Hello there!
As a practice in unity I’m trying to implement Arkanoid (breakout) game. I’ve created an EdgeCollider2d on awake for the 3 sides (walls and top according to the camera viewport) and also have GameObject Ball that has RigidBody2d (Dynamic) and CircleCollider2D and moved with rigidBody2D.MovePosition.
And I have the next problem. When the ball hit the wall near the top the first hit (wall hit) triggers the OnCollisionEnter2D but the next one (top hit) - doesn’t. I think that it is because of small amount of time between two hits. But I’m not sure and do not know how to fix it. I’ve tried different settings - triggers, Dynamic/Static/Kinematic, FixedUpdate for movement, Update with Time.deltaTime
So, will be very appreciated if anybody has any suggestions