Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Re: Movement wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 624 of 675
Post > Topic >>

Re: Movement with speed dependent friction problem

by Tom Plunket <gamedev@[EMAIL PROTECTED] > Apr 6, 2007 at 10:36 PM

asimnaseer wrote:


> The basic movement is as follows
> 
> Ft = thrust
> A = acceleration
> Vi = Initial velocity
> Vf = final velocity
> Cf = friction constant
> Ff  = friction force
> F = force on object
> 
> so...
> 
> Ff  = - Vi * Cf
> F = Ft + Ff = Ft - Vi * Cf
> A = F / Mass
> Vf = Vi + A * timeStep

One nitpick, Ff is (-Vnow * Cf), not Vi.  I.e., the friction is
dependent upon the current velocity, not just on the initial velocity.

> If I know my initial velocity, distance left to go and final velocity,
> how do I calculate the thrust ?

As others have said, it's a calculus problem if you want to solve it
exactly and with fixed values, you'll be integrating the velocity to
calculate the distance travelled and thereby solve for the force that is
desired.

Left unmentioned, though, is which, if any, of these values are allowed
to change?  For example, if Ft can change over time, then you have many
possible solutions.  Presumably Ft is bounded by some maximum value, but
you've still got a wide range of possibilities.

Also, if Ft can change over time, then you could presumably have
solution that isn't generated by an equation but rather by a simple
feedback mechanism.  E.g. "am I going the target speed?" -> Yes: do
nothing, No: apply (maximum?) force.  With the addition of drag or
friction, of course you'll probably want to maintain Ft equal to Ff once
you've reached your target velocity.

good luck,
-tom!

--
 




 5 Posts in Topic:
Movement with speed dependent friction problem
"asimnaseer@[EMAIL P  2007-04-05 18:39:46 
Re: Movement with speed dependent friction problem
John Nagle <nagle@[EMA  2007-04-05 23:13:53 
Re: Movement with speed dependent friction problem
"Jim Langston"   2007-04-06 01:14:03 
Re: Movement with speed dependent friction problem
nathan@[EMAIL PROTECTED]   2007-04-06 16:31:00 
Re: Movement with speed dependent friction problem
Tom Plunket <gamedev@[  2007-04-06 22:36:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 4:41:24 CDT 2008.