Search Unity

drag and shoot code with Line Renderer

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

  1. Lostwanderer1


    Mar 11, 2019
    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?