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))
↧