|
-
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
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
|