This is just a guess, but try to add or substract hitFirst.point.z from Cue3D.transform.localPosition.z at line 14.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Mouse drag bad rotation | 1 | 309 | May 25, 2022 | |
Mouse Position Problem | 1 | 2138 | November 2, 2010 | |
Drag Object Script Problem | 2 | 1048 | December 22, 2015 | |
Help to fix my drag code [SOLVED] | 1 | 1310 | December 18, 2012 | |
Fixing "Drag GameObject with mouse" script | 1 | 3140 | June 13, 2011 |