Apply changes from latest known public version of bounce dated 2019-11-13

This commit is contained in:
Luke Benstead
2020-01-25 12:31:05 +00:00
parent f87e2a6378
commit a61262407c
431 changed files with 108959 additions and 26372 deletions

View File

@@ -45,7 +45,7 @@ int main(int argc, char** argv)
world->SetGravity(gravity);
// The fixed time step size.
const float32 timeStep = 1.0f / 60.0f;
const scalar timeStep = 1.0f / 60.0f;
// Number of iterations for the velocity constraint solver.
const u32 velocityIterations = 8;
@@ -59,14 +59,8 @@ int main(int argc, char** argv)
// Create a box positioned at the world origin and
// aligned with the world frame.
b3BoxHull groundBox;
// Set the ground box dimensions using a linear scale transform.
b3Transform scale;
scale.position.SetZero();
scale.rotation = b3Diagonal(10.0f, 1.0f, 10.0f);
groundBox.SetTransform(scale);
b3BoxHull groundBox(10.0f, 1.0f, 10.0f);
// Create the box physics wrapper.
b3HullShape groundShape;
groundShape.m_hull = &groundBox;
@@ -115,7 +109,7 @@ int main(int argc, char** argv)
// Decode the axis and angle of rotation about it from the quaternion.
b3Vec3 axis;
float32 angle;
scalar angle;
orientation.GetAxisAngle(&axis, &angle);
// Visualize the body state in this frame.