Removed box2d world from clone canvas

This commit is contained in:
n00b
2024-11-30 22:45:20 -05:00
parent 36cee820d3
commit 2a78f8cf81
5 changed files with 71 additions and 15 deletions

View File

@@ -1295,13 +1295,6 @@ int rc_cloneCanvas(int origin_canvas_id, int mode)
canvas.color_mod = irr::video::SColor(255,255,255,255).color;
//2D Physics World
b2Vec2 gravity(0, -9.8);
canvas.physics2D.world = new b2World(gravity);
canvas.physics2D.timeStep = 1/20.0; //the length of time passed to simulate (seconds)
canvas.physics2D.velocityIterations = 8; //how strongly to correct velocity
canvas.physics2D.positionIterations = 3; //how strongly to correct position
switch(mode)
{