Potential dependent special relativity and Gauss's law for the electric field have been used for gravity by assuming vacuum energy to be generated when the energy is a minimum useful expression for vacuum energy has been found. This expression shows that elementary particles are generated by gravity vacuum filling their hollow balls; using Schrödinger equation for spherically symmetric particles vacuum energy is quantized. Treating mass as vibrating spheres thus solving Schrödinger, coordinate harmonic oscillator energy relation has been found.