- Home /
Question by
TonicMind · Dec 12, 2014 at 10:47 PM ·
mousefirebulletsprojectiles
How can I fire bullets at mouse position
Hello. For my script I need to fire projectiles from the players ship to the mouses position on the screen. Currently the mouse pointer can be anywhere on the screen. The origin of the projectiles is the player directly in front of the camera (third person).
How could I accomplish this? I don't want a scripting solution just some general guidelines...
Comment
Answer by VesuvianPrime · Dec 12, 2014 at 10:49 PM
You'll probably need to transform your mouse position into something in world space, then have your player shoot projectiles at that position.
The following resource should give you a good starting point:
Your answer
![](https://koobas.hobune.stream/wayback/20220613173921im_/https://answers.unity.com/themes/thub/images/avi.jpg)