- Home /
The question is answered, right answer was accepted
Player Object can hang on the collider forever
Hi.I have this 2D game where the player is in between 2 invisible walls and my problem is that if the player holds down forward and up on the collider he will stay on the collider and that is not good for my game as the players can abuse this and finish the game easy.I included a picture to better explain what im saying.please help me.Thank you
As long as the player keeps presing those buttons he will remain in that place.
Use physics2d $$anonymous$$aterial on platform collider and keep its friction 0;
You can add bounciness too if you want player getting a reverse force after touching wall..
no i only want the player to not be able to get past those walls but it can be used abusively
thank you $$anonymous$$ayank Ghanshala that indeed solved my problem! i created a new physic material and gave it 0 friction and asigned it to the invisible walls and now the player just slides of them! ty very much