In my pong game, I don't want the ball clipping into players' paddles so I downloaded this: http://wiki.unity3d.com/index.php?title=DontGoThroughThings script which uses raycasting and tried to convert it into 2D but I failed. in 3D it says that if you attach this script to an object, it won't clip into things on collisions. How to achieve this?
↧