function states = make_trajectory(trace, id)
% makes a trajectory for entity with given id
% from a given trace ss

for i=1:length(trace)
  states(i) = trace(i).car_states(id);
end
