PhysX for DarkBASIC Professional

Dark Physics Examples

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.

Example 1

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.

View the Source Code

Example 2

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.

View the Source Code

Example 3

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.

View the Source Code

Example 4

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.

View the Source Code

Example 5

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.

View the Source Code

Example 6

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.

View the Source Code


Please note that the Dark GDK version of this program does not contain all of the example programs. Instead it contains a small subset. However, all of the functionality is still included.
Dark Physics Atari forever :)

© Copyright 2006 The Game Creators Ltd. All Rights Reserved.
PhysX and associated imagery are trade marks of Aegia Technologies Inc, used with permission.