سؤال

I want to know if I convert formula correctly. I'm not sure of that.

I know:

force = mass * acceleration

acceleration = (Velocity - previousVelocity) / deltaTime

acceleration = force / mass

So:

(Velocity - previousVelocity) / deltaTime = Force / Mass

If I know the force to apply , the mass , deltaTime and previousVelocity, to convert it in the new velocity for a euler integration? This formula is correct ?:

Velocity = (Force / mass * deltaTime) + previousVelocity

I feel like something is wrong or missing, I need the real formula.

thanks a lot!

هل كانت مفيدة؟

المحلول

What you've written is Forward Euler on dv/dt = f(t) (with m=1) ... i.e. v(n+1) = v(n) + f(n) * dt.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top