Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

Isometric view and throwing grenades

Discussion in 'Physics' started by Hammered, May 26, 2019.

  1. Hammered

    Hammered

    Joined:
    Feb 9, 2018
    Posts:
    16
    Hi, I sped over one day for looking solution.
    I'm using click to move like game with isometric view.
    I want to allow player to throw grenade.

    Raycasting from typical FPS game won't work.
    Grenade should fly from Player's position to position where is mouse on the screen.
    I've got script which throw grenade from player up to him and it ignores the mouse position.
    It should fly forward.
    Can someone give me an issue for this?
     
  2. Iron-Warrior

    Iron-Warrior

    Joined:
    Nov 3, 2009
    Posts:
    667
    Hammered likes this.
  3. Hammered

    Hammered

    Joined:
    Feb 9, 2018
    Posts:
    16
    Thx. I made it for my own, but Yours is very good too. I must revise my code. Much thanks, I owe You beer :)