Computer Science Canada Help with shot trajectory |
Author: | WhatAmIDoing [ Tue Feb 01, 2005 12:20 pm ] |
Post subject: | Help with shot trajectory |
Well it's been along time since i've been on here but here i am again and i need some help i was reluctant to ask for help but after going to several of my teachers and them telling me that they had no-idea how to do this i'm posting to ask for help. i'm currently making a scorch game and it works but i'm trying to perfect the equation for the shot. so far all i do is take the power of the shot and divide by 9.8^2 then times by 100 to get how many pixels tall the parabola is. the to get the x value for how long the parabola is i divide the y by 2. i have the rough version of my new equation but it's not working so i was wondering if any of you guys new how to fix it?[/code] |
Author: | Cervantes [ Tue Feb 01, 2005 3:59 pm ] | ||
Post subject: | |||
Wrong Forum. You want to be in Turing Help. Why not use the formula for a parabola? y = a(x - k)^2 + q (I'm not sure if I've got the variables correct. I kinda forget. ![]() Or, you could make it work graphically:
|