Search Unity

throwing grenade - top down shooter

Discussion in 'Physics' started by kotoffei, May 4, 2020.

  1. kotoffei

    kotoffei

    Joined:
    Jul 8, 2019
    Posts:
    15
    Hello everyone!
    I'm a begginer on Unity, right now i'm making a 3d top down shooter.
    If the character is in range, i would like him to launch the grenade at mouse position or raycast.
    rRght now i'm trying to use rigidbody. So if i shoot and block y axe, the grenade goes forward. If i use gravity it falls to close to my character.
    So i would like to ask, what is the best way to throw a grenade.


    Thank you in advance!
     
    Last edited: May 4, 2020
  2. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
  3. kotoffei

    kotoffei

    Joined:
    Jul 8, 2019
    Posts:
    15
    Hello,

    Thank you very much, at least i know what to search for. I thought there may be a function in unity which could simplify this.

    Thank you!