Effects of curvature and gravity from flat spacetime