Quote:
That's true that it was just quickly written example code, but I am still confused Adding a constant force does modify the persistent gravity vector, and that's kind of the point, isn't it? I mean, gravity is a constant force, and you're just adding more to it, as I see it.
Hm. Lemme rephrase it all:
1) create a body. Call body->setGravity(vector) to describe the gravity that will always be affecting that body henceforth.
2) Apply a constant force to that body. Call body->setGravity(vector + body->getGravity)
3) time passes...
4) Now you have to remove the force from the body and leave it only acting under the gravity you initially set on it
What do you do?
Quote:
I don't understand why you would need a mass divisor/multiplier additional to that.
Because my brain has a "accelleration under gravity is constant" thing going on. The constant force applied by gravity varies with mass, while a programmer applying a constant force is attempting to apply a constant force, not one that varies on other body parameters.
Quote:
If the rocket is only on for three seconds, at the end of that three seconds, how would you know which force to remove from the accumulator if you don't know the value of the force when it was added?
I think you & I are asking the same question, just using different words to do it.
Quote:
Please feel free to explain any of this as you might to a 3rd grader
Well, with every passing message that I post here, the odds become greater that it's actually me that's misunderstanding something...
Gary (-;