Hi all,
Wanted to reach out for some advise on the best way to tackle a Mining Laser Beam. The end result is thhat when the player clicks and holds down the left mouse button a constant laser beam will shoot out towards the center of the screen until the player releases the button.
So far I have both a laser gun and rocket launcher that uses a prefab shot type that instantiates from the proper gun barrel and uses ScreenPointToRay with transform.forward to launch the shot types forward to the center of the screen. Of course the mining laser is what I am stuck on because its a bit different. I tried a few different settings on a trail render but couldnt find a setting that worked like I wanted.
In the end I would like the laser to appear no matter what, just like the other guns, but when it does hit something like an asteroid I can can still use a particle effect at the collision point to give it more of a feeling of hitting something. I have seen the video at Recorded Video Sessions on Graphics - Unity Learn which goes over shooting lasers which is fairly close and most likely the direction to take but wanted to see if anyone has discovered any better ways to do this sort of thing
If anyone has any ideas on the best path to take on this type of thing it would be much appreciated, thanks!