Kinetic energy of particles in matter