I have started a new code repository on github where I will be placing various self-contained Proof of Concept projects for the ShiVa game engine. Each project will be contained in a separate directory for easy dissemination. I will also include live web-based samples of all projects here on my blog as I create them. This is the first of those projects, click the image to load the live web version.
This demo is meant to test particle interaction with colliders along with a moving dynamic light source.
The project scene is a simple set of planes, set as colliders. These planes form a fully enclosed cube so that the object inside cannot escape. The helper object has a point-light source, a particle emitter and a dynamics controller. Every frame, a random impulse is added to the dynamics controller of the helper to give it motion. The dynamics controller has gravity disabled but dynamics and collisions enabled.
You might use this to simulate a firefly stuck in a jar, or an object with a chaotic trajectory. The code is less than a dozen lines, the project is small and to the point, feel free to check it out and use it in your projects.