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
|
|
@ -53,7 +53,7 @@ enum b3SetType
|
|||
|
||||
typedef struct b3DebugPoint
|
||||
{
|
||||
b3Vec3 p;
|
||||
b3Pos p;
|
||||
int label;
|
||||
float value;
|
||||
b3HexColor color;
|
||||
|
|
@ -61,7 +61,7 @@ typedef struct b3DebugPoint
|
|||
|
||||
typedef struct b3DebugLine
|
||||
{
|
||||
b3Vec3 p1, p2;
|
||||
b3Pos p1, p2;
|
||||
int label;
|
||||
b3HexColor color;
|
||||
} b3DebugLine;
|
||||
|
|
|
|||
Loading…
Reference in a new issue