Simulation Engine (SIM) Sample Code


This directory contains sample code for generating custom solvers and utility data types for use in the simulation engine.

Snow Solver
The Snow Solver fills a voxel array with snow. The snow falls and can be made to land on other simulation objects.
SIM_SolverSNOW.C
SIM_SolverSNOW.h
Source for the snow solver and the SNOW_VoxelArray utility class.
Hair Solver
The Hair Solver generates hair-like motion using a very simple formula. No real dynamics are calculated, but the solver still generates very interesting results.
SIM_SolverHair.C
SIM_SolverHair.h
Source for the hair solver.
Orbit Force
The Orbit Force applies a force on an object that is proprtional to the mass and inversely propertional to the square of the distance between the object and a point in world space.
SIM_ForceOrbit.C
SIM_ForceOrbit.h
Source for the orbit force.

Install Script

sample_install.sh is a sample install script.

The script will compile the sample source code. By default, everything is installed in your home directory.


Copyright © 2004 Side Effects Software Inc.
477 Richmond Street West, Suite 1001, Toronto, Ontario, Canada M5V 3E7