
-----------------------------------
platky
Mon Mar 30, 2009 6:42 pm

Trajectory of Bullet
-----------------------------------
Im having a new problem with my trajectory of my bullets. I have only done some incredibly simple attempts at getting the trajectory right but its just not accurate as you will clealry see if you try my game. I know there is a way or some equation/method to do this i just cant think of anything that would properly work. If you have any suggestions please help...

-----------------------------------
Dusk Eagle
Tue Mar 31, 2009 12:20 am

Re: Trajectory of Bullet
-----------------------------------
The horizontal distance the bullet has traveled:parameters in http://compsci.ca/v3/viewtopic.php?t=14665? Doing so would really help you write cleaner, easier to maintain code  :).

-----------------------------------
platky
Tue Mar 31, 2009 9:12 am

RE:Trajectory of Bullet
-----------------------------------
thanks i got it to work well enough and the reason for the mess of variables is because everything is really makeshift and i just keep adding. I dont feel like cleaning it up yet...

-----------------------------------
Dusk Eagle
Tue Mar 31, 2009 1:59 pm

Re: Trajectory of Bullet
-----------------------------------
BTW, the v in the first formula should be the horizontal speed, and the v in the second formula should be the vertical speed. Just thought I'd clear that up for anyone reading.
