the object vector (m = the magnitude of the vector, A = angle of the vector) and a gravity vector (Gm, GA) the part i'm having trouble finding is the new angle it is much larger than it should be. I'm betting i'm doing something really stupid. GravityXY.x = Gm * sin(GA) ; GravityXY.y = Gm * cos(GA) ; XYVelocity.x = m * sin(A) ; XYVelocity.y = m * cos(A) ; ResultantMagnitude = sqrt( pow(XYVelocity.x + GravityXY.x, 2) + pow(XYVelocity.y + GravityXY.y, 2) ) ; ResultantAngle = atan( ( (XYVelocity.x + GravityXY.x) / (XYVelocity.y + GravityXY.y) ) ) ; |