Hey guys! I was wondering how I could do a bullet effect like in Source Engine. I know Source Engine uses a different type of RayCast (I think its RayTracing, I could be entirely wrong). I came up with two methods that might work but have my concerns on both. I would be thankful for some information on how to procede.
Method 1: Bullet Object -
A bullet is sent along the raycast to the hit position and destroys itself as soon as it collides with anything. The major problem: Either I have a very fast Bullet which is hardly noticeable (like in Source Engine). This is more realistic (as RayCast hits the object immediately), but it is very hard for Unity to detect collisions of fast moving objects and the bullet might not be destroyed. Or: I have some slower bullets which are more detectable, but if the object that is hit moves, the bullet might go somewhere else and just look unrealistly. Maybe someone knows how to get Unity to detect fast bullets?
Method 2: Draw Line -
I also had Draw Line in mind, as it hits the hitpoint in perfect synchronization with the raycast, but also looks unrealistic because there is not movement, its just a line.
Anyway, you have seen my ideas, please feel free to share any of your own or improvements of the ones I have and opinions on which you think would work the best or easiest.