This commit is contained in:
Anuken
2020-08-20 18:37:15 -04:00
parent c946b42360
commit 52489ef777
8 changed files with 35 additions and 13 deletions

View File

@@ -1,6 +1,5 @@
package mindustry.async;
import arc.*;
import arc.box2d.*;
import arc.box2d.BodyDef.*;
import arc.math.geom.*;
@@ -98,7 +97,7 @@ public class PhysicsProcess implements AsyncProcess{
ref.lastVelocity.set(ref.velocity);
}
physics.step(Core.graphics.getDeltaTime(), 5, 8);
physics.step(1f/45f, 5, 8);
//get delta vectors
for(PhysicRef ref : refs){