Search Unity

HOW TO MAKE SHOTGUN JUMP IN UNITY?

Discussion in 'Scripting' started by BenManu, Mar 31, 2021.

  1. BenManu

    BenManu

    Joined:
    Sep 25, 2020
    Posts:
    3
    How to make shotgun jump in unity.
    Like when you shoot in the floor and jump this shot will knock you up like in Dani's Karlson.
    Do you have any ideas?
     
    Armaan256 likes this.
  2. Yoreki

    Yoreki

    Joined:
    Apr 10, 2019
    Posts:
    2,605
    Depends entirely on how you implemented other things, and the result you expect. For a rigidbody based player, simply add an opposing force to the shot (optionally only do so when off-ground). When using your own character controller, simulate this same force being applied to how you usually move your character.

    The rest is up to experimenting until you are satisfied with the result.
     
    Joe-Censored likes this.