To perform motion planning for complex realistic systems, accurate modeling of these systems is necessary - a model of their behaviour under different inputs. Typically, such models are systems of equations of motion. However, such equations do not account for friction, gravity or contacts with other bodies. To account for these, which is needed for real robots, physics-based simulation for rigid body dynamics can be used instead.