Hey guys, I just uploaded a new tutorial that I thought may be helpful to those who wish to add a gears of war style trajectory line for their grenades to their games. Source code included. There’s a couple other gems in there, like calculating the required velocity to launch an object at to make it land at a specific point. Also, translating a mouse coordinate to a 3D position. Hope it’s helpful to someone.
http://morgan-davidson.com/2012/06/19/3d-projectile-trajectory-prediction/
Thanks for sharing i was working on a solution for this, now i can check your implementation and apply to mine…
Thank you
Excellent write up. Seeing stuff like this in the community inspires me to start my old blogs back up.
Glad you guys found it useful. I also have a shorter write up about how to do metaballs using the marching cubes algorithm if anyone is interested. I haven’t included any code for that one though. I’m planning on doing a post about how to optimise the algorithm a bit and in there post some code samples. I was able to get it running quite well on my iPad 2 with 40+ metaballs on screen.
I love doing these little write ups because I find sometimes when I’m implementing little pieces of functionality like this, I don’t actually fully understand how the code works myself. There is a lot of trial and error involved much of the time. So doing this forces me to dig down and really comprehend what I’m producing rather than just going through the motions.
http://morgan-davidson.com/2012/07/31/metaballs/
Anybody still have an example of the Grenade Prediction Line?