Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which method(s) does Unity provide for physical integration? RK4? Verlet? Euler?

share|improve this question
Unity uses the physics systems PhysX, however I cannot find which integration method it uses. – Roy T. Jul 8 '14 at 9:52
up vote 5 down vote accepted

For 3D, Unity uses PhysX. According to this answer, PhysX uses a symplectic integrator. The paper it cites as evidence is a bit more ambiguous though:

Since it is a commercial engine the implementation details are unknown ... Most physics engines provide results similar to the Symplectic Euler integrator, or 2nd order Euler. Novodex (Ageia PhysX) provided the best results.

The integration error graph shows it behaving slightly better than the "Euler 2nd order" reference implementation, and significantly better than the "symplectic Euler" reference integrator. So it looks to me like it's not a 100% off-the-shelf integrator, and has some custom adjustments that may be hard to duplicate without the source code.

For 2D, Unity uses Box2D, which uses Symplectic Euler, according to these forum posts.

share|improve this answer
Update: the PhysX source code has been made available, so a more detailed answer may now be possible.… – DMGregory Mar 7 '15 at 20:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.