- Home /
How to add knockback to a player and when releasing the joystick not stopping knockback force
So I know how to add a knockback to the player the thing is that the player movement script stops the player when I release the joystick and that's alright but when I give the knockback I want the player to be able to move so they can manipulate the direction a little bit. So right now when I give knockback to the player when they release the trigger they stop all knockback forces what the script is supposed to do is stopping all the forces that the player controller is giving to the player but the knockback.
Answer by TextodeEjemplo · Nov 11, 2018 at 01:57 PM
So the answer was doing kinematic rigidbody with his own "collision system" ( I know it is not a collision system) by applying normals and storing them in different Vectors for example movement_velocity, gravity_velocity, external_forces_velocity. This is the code
[1]: https://github.com/SrCiruelo/Brawler/blob/master/My_Rigidbody_2D
Your answer
![](https://koobas.hobune.stream/wayback/20220612181441im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D 360 degress platformer example needed 0 Answers
2D Character Movement Collision Problem 0 Answers
How do I make the length of my rope shorter 1 Answer
Easy question about 2d platformer mechanic 0 Answers
2D Geometry dash-like ship physics 0 Answers