Collision detect issue.

Hi everybody:
I’m starting a pingpong game now. And I’v gotten a fatal problem now.
When the ball comes towards the racket, as the racket is under the control of player, sometimes maybe the player would like to give a heavy hit to the ball, this will make the ball go through the racket.

Also, I use script to add force to the ball in function OnCollisionEnter. The scripts did receive the message, but the ball still pass through the racket.

I cast a ray to detect collision. I use the raycast function like “DontGoThroughThings”. But this does not work either. The behavior is still very odd.

With this problem, I can’t do anything more. Does anyone have any suggestion. I will appreciate.

Does the collision work if you hit the ball slowly, but not when you hit it fast? You might need to send the raycast out to a greater distance than you normally would, since both the bat and the ball are moving at the same time.

Thanks for reply.
That’s what I’m doing now. It getting better now.
Actually the most important thing is when the OnCollisionEnter message is received, that means the ball is colliding the racket, if the racket is still moving. This will cause odd behavior.
So when the OnCollisionEnter message is received, I let the racket stop moving under the control of player, and do a little shock, make it looks like real hitting. After all of these jobs done, it seems work fine.