Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    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

drag and shoot code with Line Renderer

Discussion in 'Scripting' started by Lostwanderer1, Jul 16, 2019.

  1. Lostwanderer1

    Lostwanderer1

    Joined:
    Mar 11, 2019
    Posts:
    24
    Hi, I am working on drag and shoot mechanics. I have created the mechanics, but i am not able to figure out the code for line renderer which rotates in opposite direction when dragged in 3D. (ex. buca, available on ios). I need the line renderer to rotate in direction of launch as i move my finger.
    How is that done?
     
unityunity