Development Log #068
Development Log #068
Projectile Trajectory – January 3rd 2023
Polishing some of the finer aspects of ranged targeting. Trajectory will switch to a smaller, more optimized angle if possible when target is on a similar height. Just one of many small enhancements for the demo!
Simulating 3D trajectory in a 2D space has been a real journey back through trigonometry. Most important, though, is how it looks and having a proper trajectory line that correctly shows where a projectile will land is very important.
There have been a few iterations of the trajectory preview line, some of which have looked a bit odd, but I think this one meets all the criteria. There’s still some work to be done in making sure it’s properly visible from all the various angles and height differences, of course, but it’s coming along.
Below is a preview of something I hope to have working soon, a system where you can shoot a little bit beyond the current range depending on different factors like height difference and possibly even wind.
Note: Remember, some of the images and gameplay depicted here may be outdated and does not represent the current state of the game!