Ask your own question, for FREE!
Physics 19 Online
OpenStudy (anonymous):

Writing algorithm of gravity. Gravity works properly, but when i add vertical motion it seems to mess up. (code: (v * t) - (0.5f * g) * (float)Math.Pow(t, 2) where t is time, g is gravity(-9.8) and v is vertical motion)

OpenStudy (anonymous):

the equation works however the results are upside down.

OpenStudy (anonymous):

Because you had a minus in your equation of motion as well as in your definition of \(g\). Do only one or the other.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!