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

Answer by belvita

$
0
0
u must use mouse raycast for something like this add this to ur update func Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); GameObject urOBJ=GameObject.FindWithTag("urobjTAGname"); if( Physics.Raycast( ray,out hit) ) { if(urOBJ) { urOBJ.transform.position=new Vector3(hit.point.x,hit.point.y,0); }

Viewing all articles
Browse latest Browse all 91

Trending Articles



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