Doubles (#14)
Added a compile time option to use double precision body positions. Most math remains single precision with minimal performance loss. `BOX3D_DOUBLE_PRECISION` Improved accuracy of body inertia computation when shapes are far from the body origin. WARNING: several APIs changed but migration should be straight forward if doubles are not enabled.
This commit is contained in:
parent
a252f03b19
commit
09c65b08ea
115 changed files with 7591 additions and 5295 deletions
|
|
@ -11,6 +11,11 @@ extern "C"
|
|||
{
|
||||
#endif
|
||||
|
||||
// World-space minor-cell size of the procedural ground grid (meters). Major
|
||||
// lines fire every 10 cells inside the shader. Shared so the host can wrap the
|
||||
// draw origin to the grid period and keep the grid crisp far from the origin.
|
||||
#define BOX3D_GROUND_GRID_CELL_SIZE 1.0f
|
||||
|
||||
void InitAdapter( void );
|
||||
|
||||
// Unconditionally flush the debug-shape pool: release the GPU mesh references
|
||||
|
|
|
|||
Loading…
Reference in a new issue