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
|
|
@ -21,7 +21,7 @@ public:
|
|||
{
|
||||
if ( m_context->restart == false )
|
||||
{
|
||||
m_camera->SetView( 30.0f, 15.0f, 70.0f, b3Vec3_zero );
|
||||
m_camera->SetView( 30.0f, 15.0f, 70.0f, b3Pos_zero );
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ public:
|
|||
{
|
||||
if ( m_context->restart == false )
|
||||
{
|
||||
m_camera->SetView( 45.0f, 20.0f, 15.0f, b3Vec3_zero );
|
||||
m_camera->SetView( 45.0f, 20.0f, 15.0f, b3Pos_zero );
|
||||
}
|
||||
|
||||
m_bodyIds = nullptr;
|
||||
|
|
@ -442,7 +442,7 @@ public:
|
|||
{
|
||||
if ( m_context->restart == false )
|
||||
{
|
||||
m_camera->SetView( 30.0f, 35.0f, 15.0f, b3Vec3_zero );
|
||||
m_camera->SetView( 30.0f, 35.0f, 15.0f, b3Pos_zero );
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue