Strange problem with ball and blocks

I’m having a weird issue in the block breaker game where sometimes the ball will just pass right through the blocks without hitting them or supermaning through several blocks at a time before bouncing off. I’ve checked and double checked the code within the scripts and they match with the course and the settings in the inspector for the ball and the blocks are what they should be (unless I somehow missed something). It doesn’t happen to all the blocks its only some of them. If anyone has had a similar issue and fixed it or if you have an idea please let me know. Much appreciated.

Try this : Check and try changing the collision detection from “discrete” to “continuous” on the ball’s rigidbody. I believe “continuous” is better suited for fast moving objects like the ball.

image

Thank you I’ll definitely give that a try and keep that in mind for future projects as well.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms