|
I want it so there is a ray cast in the middle of the camera. The raycast goes far but not infinite. When i shoot my gun, the bullet goes towards where the raycast hits an object. can any one help me with this? Thanks!
(comments are locked)
|
(comments are locked)
|

Are you sure you ned a raycast if you're going to instantiate a bullet? You could probably just send out the projectile forward.
And add on OnCollisionEnter... It'd be just as good.. Then have it destroy itself after a certain amount of time...