x and y are measured in meters and t in seconds