What kind of integration scheme does nphysics use?

help

#1

Hi,
I’m currently working on a 2D game involving planets with orbits. My idea is to use force generators. What kind of integration scheme does nphysics2d use? And is it suited for this kind of task?


#2

Hi !

Currently forces originating from force generators are integrated explicitly (explicit euler) though our goal in the end is to integrate their linear part implicitly. Positions are integrated with a semi-implicit Euler scheme.

The fully explicit treatment of force generators may be problematic depending on their nature. I’d advise you to try and if it does not fit the level of accuracy you need we can add the implicit linear part, or perhaps discuss the addition of another integration scheme.

Edit: also note that gyroscopic forces are already integrated in a linearly-implicit way so they are very stable.