I have a ball rotating in the center of player (its child of player). The game is simple. Ball will collide with walls and get player higher and make it pass the parkour. But sometimes ball pass through colliders.
Here is the video of the problem:
https://streamable.com/0et3wt
The code of rotation:
transform.RotateAround(target.position, Vector3.forward, rot * Time.deltaTime);
I try to add Rigidbody2D and change some settings but it didn’t worked. I’ll need a solution that ball will never pass through the collider. If you want to help and need more info about the code or etc. give comment and I’ll sent.