Originally posted by kingdeath360
I don't know how many of you will actually find this useful, but I spent a while coding this and it was actually pretty fun.
I wanted to learn more about game programming (don't tell me vb is a shit language to program games in, i do what i want), so I started with some gravity.
Basically the formula used is that explained
You must login or register to view this content. (requires a little physics knowledge to understand).
tl;dr - you can use this module to create controls which have gravity.
Note: this is not a fully completed source (i.e. one that gives you a great deal of options), so you might have to modify it if you want to do something a little different. I haven't added wind yet, either.
How to use:
You must login or register to view this content.
The actual way of starting gravity for a particular item is: RightClick -> Start Gravity
Here's a basic example of what you can do:
[spoiler=Example]
You must login or register to view this content.[/spoiler]
Here's the source:
You must login or register to view this content. (mediafire)
So yeah, have fun :blackhat: