Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto committed Jul 28, 2024
1 parent 3d26f20 commit 24b3ada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
11 changes: 1 addition & 10 deletions samples/sample_stacking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ class VerticalStack : public Sample
m_shapeType = e_boxShape;
m_rowCount = e_maxRows;
m_columnCount = 5;

// todo temp
m_rowCount = 1;
m_columnCount = 1;

m_bulletCount = 1;
m_bulletType = e_circleShape;

Expand Down Expand Up @@ -226,7 +221,7 @@ class VerticalStack : public Sample
}

float dx = -3.0f;
float xroot = -8.0f;
float xroot = 8.0f;

for (int j = 0; j < m_columnCount; ++j)
{
Expand All @@ -241,10 +236,6 @@ class VerticalStack : public Sample

float shift = (i % 2 == 0 ? -offset : offset);
bodyDef.position = {x + shift, 0.5f + 1.0f * i};

// todo temp
bodyDef.position.y -= 0.25f;

// bodyDef.position = {x + shift, 1.0f + 1.51f * i};
b2BodyId bodyId = b2CreateBody(m_worldId, &bodyDef);

Expand Down
7 changes: 3 additions & 4 deletions src/distance.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
#include "box2d/math_functions.h"

#include <float.h>

#define B2_RESTRICT
#include <stddef.h>

b2Transform b2GetSweepTransform(const b2Sweep* sweep, float time)
{
Expand Down Expand Up @@ -314,7 +313,7 @@ void b2ComputeSimplexWitnessPoints(b2Vec2* a, b2Vec2* b, const b2Simplex* s)
// Solution
// a1 = d12_1 / d12
// a2 = d12_2 / d12
void b2SolveSimplex2(b2Simplex* B2_RESTRICT s)
void b2SolveSimplex2(b2Simplex* s)
{
b2Vec2 w1 = s->v1.w;
b2Vec2 w2 = s->v2.w;
Expand Down Expand Up @@ -348,7 +347,7 @@ void b2SolveSimplex2(b2Simplex* B2_RESTRICT s)
s->count = 2;
}

void b2SolveSimplex3(b2Simplex* B2_RESTRICT s)
void b2SolveSimplex3(b2Simplex* s)
{
b2Vec2 w1 = s->v1.w;
b2Vec2 w2 = s->v2.w;
Expand Down

0 comments on commit 24b3ada

Please sign in to comment.