changes to apply physics to 3d world