Hello all,
I tried to search for this on the forums, but didn’t come up with any answers.
I have a realtime isometric shooter (think Diablo III, torchlight, XCOM (except realtime), etc.) where the player uses wasd to run around, and clicks the mouse to shoot in the direction of the mouse. There are many different bullet types, each with a different effect (e.g. regular bullet, long range sniper, cone shaped buckshot) and to distinguish between the different types I need to draw a representation of the bullet trajectory before the gun fires. Here are some ideas I had so far, but they’ve been difficult to implement:
Crosshairs where the gun will fire to (which lock to an enemy if there’s one there)
Creating a line renderer and recalculating the bullet trajectory every frame
Creating wireframe prefabs for all of the bullet types and instantiating/moving around as needed
Performance is another thing to keep in mind. Has anyone done this before or have any other ideas?
Thanks