I'm currently developing a tool for a game I want to build and the issue I'm facing now as I'm doing homework as well so sorry I'm using speech to text to do this as I do my homework to get my thoughts out
How would I go about making a constant ray cast I would last for a second and update constantly so then the laser would like always go to where the players aiming the gun but also without consuming too much resources using the raycast feature well I don't know really what I'm doing so I just want to make a railgun that holds a constant fire like a solid beam and then it goes on cool down which I already have that sorted out so how would I go about doing thi?
I am using raycasts to make sure it doesn't have any objects in the way of fire so you can't like shoot through walls too, obv
another thing is how would I do raycasting on the client side and then shoot it over to the server so that the server has less load but also without high latency?