dcsimg
Results 1 to 4 of 4

Thread: [VB6] Friction Force

  1. #1

    Thread Starter
    Android OpenGL ES Guru Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,252

    [VB6] Friction Force

    This is a very simple physics implementation that adds friction to your sprites which should make your game more realistic. It uses a 2nd Order Euler, which is more accurate than regular Euler:

    x = x0 + v * dt - 0.5 * a * dt * dt
    v = v0 + a * dt

    Where a = f/m

    It even includes a scalefactor to where you can make kilometers as big as you want in pixels.

    Friction.zip

  2. #2
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Maine, USA
    Posts
    277

    Re: [VB6] Friction Force

    *Kal goes to look up Euler*
    <deis> I turn on god mode when I program
    <deis> I just call it .NET


    If my post was helpful, please Rate it

  3. #3

    Thread Starter
    Android OpenGL ES Guru Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,252

    Re: [VB6] Friction Force

    And?

  4. #4
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Re: [VB6] Friction Force

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width