bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.49k stars 2.87k forks source link

add long double precision support #4580

Open ZeunO8 opened 7 months ago

ZeunO8 commented 7 months ago

Adds support for long double. Everything seems to work fine and we get the added benefit of long double precision, allowing for larger masses and more refined precision.

The serialization and various parameters may need to be revisited as I haven't tested that.

erwincoumans commented 5 months ago

Wow, quite some work went into this. What kind of application requires this long double precision?

Btw, support of long double seems compiler specific, msvc vs gcc and clang.

ZeunO8 commented 5 months ago

Use case lies within simulating masses of universal scale