[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.7 csPhyziks Library (csphyzik)

Written by Michael Alexander Ewert, michael_ewert@hotmail.com. Last updated 22 July 2000.

This library is a work in progress so many things will change (and probably already have by the time you read this).

The Phyziks (`csphyzik') library is a dynamics modeling and simulation engine. Focus is currently on rigid body dynamics. The core of the engine is a numerical integrator that solves the equations of motion for given bodies. Different types of bodies will have different equations of motion. A simple example would be the equations of motion for the center of mass of a rigid body.

These two equations together have a fancy name: Coupled Ordinary Differential Equations.

dx/dt = v
Change of the bodies position over time == the velocity of the body.
dv/dt = a
Change in velocity == acceleration.

This equation is used to bootstrap the solving of the above ODEs:

F = ma
Force = mass * acceleration. So a = F/m. Plug into second ODE.

You would add the body to the engine and any forces that act on it. When you tell the engine to evolve the system, it will figure out the new value for the state of your body. Then you would request the new position from the engine via a pointer to your body. That value would be used to update the position of the object that represents your body in the renderer.

6.7.1 Physical World  
6.7.2 Bodies  
6.7.3 Forces  
6.7.4 Articulated Bodies  
6.7.5 Impulses  
6.7.6 Solvers  
6.7.7 Catastrophes  
6.7.8 ODE Solvers  
6.7.9 Usage Guide  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated using texi2html