Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

Commit 417a19b

Browse files
committed
update box2d version
1 parent cdd251a commit 417a19b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

box2d

Submodule box2d updated 62 files

src/box2d-wrapper/box2d_wrapper.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using namespace godot;
1313
#define B2_DEBUG true
1414

1515
struct Box2DHolder {
16-
HashMap<int, ActiveBodyCallback> active_body_callbacks;
16+
HashMap<b2WorldId, ActiveBodyCallback> active_body_callbacks;
1717
HashMap<int, int> active_objects;
1818
};
1919

@@ -1386,10 +1386,8 @@ void box2d::world_step(b2WorldId world_handle, SimulationSettings settings) {
13861386
#endif
13871387
//world_handle->SetGravity(settings->gravity);
13881388
// TODO set world gravity
1389-
//settings.max_velocity_iterations, settings.max_position_iterations
13901389
b2World_Step(world_handle, settings.dt, settings.sub_step_count);
13911390
int active_objects = 0;
1392-
/*
13931391
if (holder.active_body_callbacks.has(world_handle)) {
13941392
ActiveBodyCallback callback = holder.active_body_callbacks[world_handle];
13951393
for (b2BodyId body = world_handle->GetBodyList(); body != nullptr; body = body->GetNext()) {
@@ -1415,6 +1413,5 @@ void box2d::world_step(b2WorldId world_handle, SimulationSettings settings) {
14151413
}
14161414
}
14171415
}
1418-
*/
14191416
//holder.active_objects[world_handle] = active_objects;
14201417
}

0 commit comments

Comments
 (0)