Quantcast
Channel: Answers by "belvita"
Viewing all articles
Browse latest Browse all 91

Answer by belvita

$
0
0
I see that u do not use raycasthit in ur update function this causes unity not to be able to calculate where on each frame ur raycast is hit.for proper raycast detection change the design of ur code then it should work Also change this if (Physics.Raycast (dragRay, dragHit, Mathf.Infinity)) To if (Physics.Raycast (dragRay,out dragHit, Mathf.Infinity))

Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>