Real-time inference of physical properties in dynamic scenes