Search Unity

Jump Effect to cliked position

Discussion in 'Scripting' started by Thriliriel, Mar 31, 2015.

  1. Thriliriel

    Thriliriel

    Joined:
    Jan 29, 2015
    Posts:
    10
    Hello there.

    I have made a jump effect on an object and it works pretty fine. But now i have another issue: i need to make it jumps to some clicked point on screen.

    I attached an image on this thread. So, the object needs to "move" from his transform.position to the Camera.main.ScreenToWorldPoint (Input.mousePosition).

    I make the normal jump method using rigidbody.AddForce(), but i dont know if it is possible to use the same method to make this desired behaviour.

    Anyone knows if there is a way to make this, and how?

    Thanks.
     

    Attached Files: