|
Hi, it's me again. I have a little space ship which stay's in the middle of my screen (Good) I have followed a tut by the Tornado Twins to make a object fire from a spawnpoint in a single directcion or towards were my character is faceing (Good, but not what I need) I would like a script to make a object fir from where my mouse is aiming. thank you for your time.
(comments are locked)
|
|
See the FPS tutorial for weapon aiming. FPS Tutorial Essentially, you just cast a ray with Camera.ScreenPointToRay(); Here's a simple example.
(comments are locked)
|
