public void updatePosition(float dt) { if (fixed) { netForce.reset(); // Shouldn't accumulate forces if fixed return; } updateAcceleration(dt); updateVelocity(dt); Point prev = new Point(pos.x, pos.y); pos.add(vel.copy().scale(dt, dt)); ensureInBounds(); }