Re: bullet code (was ICONS - dead horse)
- Posted by David Roach <roachd_76 at YAHOO.COM> Feb 07, 2000
- 366 views
Ok george You are right. I keep getting the two equations mixed up. I forget that this is the vertical component of an angle y = vy * t - .5 *g* t* t So we plug in the values for 0f/s up for a bullet shot true to the horizon. y = 0 f/x * 1 - .5 * 32 * 1 * 1 y = -.5 * 32 * 1 * 1 y = -16 I hope this is correct because I am tired of tasting my foot. But you would need to make this a positive because of the way the computer reads the x,y coordinates. EG y = -16 would make it go up the screen instead of down. So for the y we could just use y = .5 * g * t^2 Correct???????????? roachd_76 You are helping me see the light. I realy apreciate it.