Model of a quantum particle in spacetime