# Rigid body simulation in Mathematica

**URL:** <https://community.wolfram.com/t/rigid-body-simulation-in-mathematica/1426>\
**Category:** Questions\
**Tags:** engineering, mathematica, modeling\
**Created:** [February 5, 2014, 9:59am UTC](https://community.wolfram.com/t/rigid-body-simulation-in-mathematica/1426 "2014-02-05T09:59:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![generalrelativity](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@generalrelativity](https://community.wolfram.com/u/generalrelativity)\
**Post date:** [February 5, 2014, 9:59am UTC](https://community.wolfram.com/t/rigid-body-simulation-in-mathematica/1426/1 "2014-02-05T09:59:37Z")

</div>

Does anyone know if Mathematica has the ability to simulate rigid bodies with collision response? Or if there is a 3rd party module to do it? I have had a search through the documentation and on google and nothing definitive has shown up.

Thanks

---

<div class="post-metadata">

**Author:** ![niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@niels](https://community.wolfram.com/u/niels)\
**Post date:** [February 9, 2014, 2:08pm UTC](https://community.wolfram.com/t/rigid-body-simulation-in-mathematica/1426/2 "2014-02-09T14:08:37Z")

</div>

Hi  
You can simulate rigid body dynamics in many ways with Mathmetica. So the answer depends on the type of problem formulation you have. In the simplest cases rigid body dynamics with impact can be simulated using assumptions of a fraction of enery loss by the collision. This can be done using standard Newtonian mechanics. With assumption of enegy concervation you can use the Lagrangian function in Mathmatica. In the case where you have a 2d or 3d boundary value problem you can use a finite-element add-on package such as AceFem (see [http://www.wolfram.com/products/fields/](http://www.wolfram.com/products/fields/)) or write a solver for these types of problems yourself using the Wolfram language.

---

<div class="post-metadata">

**Author:** ![generalrelativity](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@generalrelativity](https://community.wolfram.com/u/generalrelativity)\
**Post date:** [February 11, 2014, 10:16am UTC](https://community.wolfram.com/t/rigid-body-simulation-in-mathematica/1426/3 "2014-02-11T10:16:56Z")

</div>

Thanks for the info. The AceFem looks very nice, although somewhat expensive for the minor investigation that I had planned. My aim was to prototype some work that would benefit from a system already in place that could simulate arbitrary rigid bodies with collision response. I think the best solution for myself would be to create an interface between mathematica and an external library containing an external rigid body and collision solver, such as “Bullet Physics”.
