r/UnityHelp • u/FantasticCrab3 • Mar 02 '21
Gun recoil
I already have bullets and stuff planned for later, but for now I want to make it so that when I click the left mouse button, the player object gets propelled in the opposite direction. How would I do this?
3
Upvotes
2
u/DeckOfDubstep Mar 02 '21
You can add a rigidbody to your player and use it in the script to addforce back :)