[2D] Player Goes inside 'Platform with Box Collider' if velocity high enough
So The Problem is that i have a platformer in which the player dashes some distance.. But, if i dash close to a higher platform or into a wall or steps.. sometimes my player goes 'Inside' it breaking through the Box Collider. How do i fix that?? Here's an example - (Normal and inside Platform Pics)
Answer by AdvancedChallenge · Apr 14, 2020 at 02:30 PM
You can put the collision detection on the Rigidbody of your player to continuous. I had the same problem. (I didn’t have slopes though, but I think that shouldn’t matter.)
Answer by streeetwalker · Apr 12, 2020 at 08:11 AM
@mayIHaveThisDance, we can't tell unless we see the code for moving the player and the collision testing.
Ha! Sorry, Dude, somehow it got bumped up the to top of the recent posts list.
Your answer
![](https://koobas.hobune.stream/wayback/20220612152444im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Physics of boxes and blocks in 2d 0 Answers
[2D] Rigid body snaps through floor and back 1 Answer
Player controlled platforms 0 Answers