High Bounciness causes object to pass through walls
Hi,
Creating a pinball game that features a small capsule (player) bounced around the scene. Interesting thing is, when the object is bounced from an object, the resulting bounce SOMETIMES moves it through the walls confining the scene. Info: The Player has a rigidBody 2D component (all physics interactions are in 2D, all objects are in the "Player" plane), set to Dynamic (need gravity), collision Detection is set to Continuous, and Interpolate is set to "Interpolate". Player also has a Box Collider 2D, and its input is set using its rigidBody.movement (to imitate acutal physics). All other objects have a Box Collider 2D and have a material that has a bouncy attribute. Is Trigger is turned off.
Again, the interesting thing is that when the player is bounced from an object, the player SOMETIMES moves through wall objects. Player doesn't move through wall objects using any input. With low bounciness levels this DOES NOT OCCUR, only with high bounciness levels. Unfortunately, I need the high bounciness level to mimic the pinball-like motions.
Any info is appreciated! Thank you!
Answer by Cuttlas-U · Oct 25, 2017 at 11:34 AM
hi;
the collider of the wall is thin ?
try to make it bigger on the other side and check ;