- #1
sciwizeh
- 25
- 0
First off, this isn't Homework so there is no question per se. I'm having deriving something that probably was in my Physics I/II course, but I forgot.
Here's my problem... I have two cannons (points) in 2D space, I'm not using vectors, just separate scalars for both the x and y coordinates I have a constant angle (generated randomly) and what i want to try to find are the x and y velocities. I need no time dependency in the formulas.
so far i think i have the y velocity but I'm not sure, and I'm at a loss to get the x velocity:
from the formula: v^2=V0^2+2g(r-r0), I was able to get v0=sqrt(2g(r-r0)-v).
but I don't want any dependence on v or time, so I'm slightly stuck.
(I'm trying to write AI for a 2D cannon computer game)
Here's my problem... I have two cannons (points) in 2D space, I'm not using vectors, just separate scalars for both the x and y coordinates I have a constant angle (generated randomly) and what i want to try to find are the x and y velocities. I need no time dependency in the formulas.
so far i think i have the y velocity but I'm not sure, and I'm at a loss to get the x velocity:
from the formula: v^2=V0^2+2g(r-r0), I was able to get v0=sqrt(2g(r-r0)-v).
but I don't want any dependence on v or time, so I'm slightly stuck.
(I'm trying to write AI for a 2D cannon computer game)