Quantcast
Channel: Answers by "Narv"
Viewing all articles
Browse latest Browse all 60

Answer by Narv

$
0
0
You'll want to use Camera.ScreenToWorldPoint(Input.mousePoision) http://docs.unity3d.com/Documentation/ScriptReference/Camera.ScreenToWorldPoint.html You'll get the point in the world space that the mouse is pointing at, then you can make your bullet along the path from the camera or spawn point, to that position.

Viewing all articles
Browse latest Browse all 60

Trending Articles



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