Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Moving Object to where I click 3D

Discussion in 'Scripting' started by Bwuh, Apr 8, 2021.

  1. Bwuh

    Bwuh

    Joined:
    Jan 19, 2021
    Posts:
    1
    Yo pretty much in my game you hit a ball with a golf club and i am trying to make the ball go towards the center of my screen, is the best way to do this with raycasting? Or is there some better way?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    13,753
    You can definitely do it with raycasting.

    There are also a LOT of existing Youtube tutorials explaining precisely what to do.

    Screen Shot 2021-04-08 at 3.12.09 PM.png
     
unityunity