-
Notifications
You must be signed in to change notification settings - Fork 0
Movement Equations
Our physics engine is based on impulses and momentum as proposed by Baraff. Since our game is two-dimensional, we are able to reduce his movement equations and receive the following system of partial differential equations:
$$ \frac{\textbf{d}}{\textbf{d}{t}} \left( \begin{array}{c} \vec{x}(t)\ \vec{P}(t)\ \theta(t)\ L(t) \end{array} \right)
\left( \begin{array}{c} {\vec{P}(t)}/{m}\ \vec{F}(t)\ L(t)/I\ \tau(t) \end{array} \right) $$
We devise a simple, yet effective symplectic Euler solver for this equation:
Here, the force