-
Feb 17th, 2006, 02:47 PM
#1
[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
-
Feb 18th, 2006, 02:34 PM
#2
Hyperactive Member
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
-
Feb 20th, 2006, 12:43 PM
#3
Re: [VB6] Friction Force
And?
-
Dec 10th, 2009, 04:47 AM
#4
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|