Dark Physics comes with 115 example programs. Here are just a few of them taken from the DarkBASIC Professional version of Dark Physics. Look at the source code, pull them apart and learn from them.
 |
Character Controller Demo
In the Character Controller example we have loaded in a level (built with FPS Creator). From there you can walk and look around, with full sliding collision on all objects.

|
|
 |
Cloth Demo
In one of the cloth demos we get to see how cloth and rigid bodies interact with each other. A simple scene is created and you can then move a ball around. The cloth drapes over the ball smoothly and in real-time.

|
|
 |
Complex Machinery
We have several demo programs showing more complex uses of joints. One of them creates a machine with moving parts that has a chain of spheres attached to. Watch as the machine spins, the chain follows, and the towers go flying.

|
|
 |
Rigid Body Bridge
Many tutorials are included in Dark Physics covering all kinds of topics. One of them describes how to make a bridge using a collection of rigid bodies and joints. The tutorial guides you through from an empty program to constructing a full working bridge.

|
|
 |
Opening Doors
One of the joint demo programs shows how to create a door. Whenever any rigid bodies hit the door with some force it will swing open. You can also make it so that with a certain amount of force the joint will break and the door falls off.

|
|
 |
Particle Emitters
With the particle commands you can create your own emitters and customise them how you like, or use some prebuilt emitters. In this example a fire emitter is used. Emitters can be moved in real-time, allowing for effects such as impressive space ship plasma trails, or car exhausts.

|