Update to box2d 2.4.1

This commit is contained in:
Garrett Brown
2020-10-17 22:15:18 -04:00
parent 7d24beab90
commit 77f238767f
58 changed files with 879 additions and 367 deletions
+2 -1
View File
@@ -33,7 +33,6 @@
b2Fixture::b2Fixture()
{
m_userData = nullptr;
m_body = nullptr;
m_next = nullptr;
m_proxies = nullptr;
@@ -47,6 +46,7 @@ void b2Fixture::Create(b2BlockAllocator* allocator, b2Body* body, const b2Fixtur
m_userData = def->userData;
m_friction = def->friction;
m_restitution = def->restitution;
m_restitutionThreshold = def->restitutionThreshold;
m_body = body;
m_next = nullptr;
@@ -235,6 +235,7 @@ void b2Fixture::Dump(int32 bodyIndex)
b2Dump(" b2FixtureDef fd;\n");
b2Dump(" fd.friction = %.9g;\n", m_friction);
b2Dump(" fd.restitution = %.9g;\n", m_restitution);
b2Dump(" fd.restitutionThreshold = %.9g;\n", m_restitutionThreshold);
b2Dump(" fd.density = %.9g;\n", m_density);
b2Dump(" fd.isSensor = bool(%d);\n", m_isSensor);
b2Dump(" fd.filter.categoryBits = uint16(%d);\n", m_filter.categoryBits);