This commit is contained in:
Anuken
2021-08-10 15:12:58 -04:00
parent 78dc94b0ed
commit e7e64379dd

View File

@@ -42,10 +42,10 @@ public class PhysicsProcess implements AsyncProcess{
if(entity.physref == null){ if(entity.physref == null){
PhysicsBody body = new PhysicsBody(); PhysicsBody body = new PhysicsBody();
body.x = entity.x(); body.x = entity.x;
body.y = entity.y(); body.y = entity.y;
body.mass = entity.mass(); body.mass = entity.mass();
body.radius = entity.hitSize() / 2f; body.radius = entity.hitSize / 2f;
PhysicRef ref = new PhysicRef(entity, body); PhysicRef ref = new PhysicRef(entity, body);
refs.add(ref); refs.add(ref);