I’ve been working on my projectile system made from scratch and this seems to be one of the most difficult problems i can’t solve but yet seems to have a simple and easy solution and idk.
in my system i set it so that the trajectory of the projectile updates every 1/30th of a second, so essentially its making 30 calculations every second. you don’t need to do more than this because its inefficient and will cause lag.
so given this information, im creating 30 dots per second that are connected by raycasts in the trajectory. heres a visualization :
Now if i try adding a trail that positions itself on the next created point in the step it would look like they are running at 30fps since the trajectory is updating every 30 seconds which looks kinda laggy for users running at 60fps or higher which is mostly everyone:
Now, how do i make smooth bullet trail that follows my trajectory made at 30hz? Like this game:
Their tracers look so good and smooth and ontop of that at the end of the trail it turns into a ball like shape after a certain distance and glows and shrinks over time. I want to do this how do i do this with my current projectile system??? im lost i just can’t do it idk how. and phantom forces does this good too. how?